forked from geeekgod/Pre-Screen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (59 loc) · 1.34 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
version: "3.3"
services:
postgres:
image: postgres:13-alpine
command: ["postgres", "-c", "fsync=false", "-c", "full_page_writes=off"]
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
volumes:
- ./tmp/db:/var/lib/postgresql/data
networks:
- pre_screen_network
app:
build:
context: .
dockerfile: docker/app.Dockerfile
command: bash -c "bundle exec puma -C config/puma.rb"
environment:
PORT: 8181
RAILS_ENV: production
REDIS_URL: "redis://redis:6379/12"
RAILS_SERVE_STATIC_FILES: "true"
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
env_file:
- .env
volumes:
- .:/app
ports:
- "8181:8181"
depends_on:
- postgres
networks:
- pre_screen_network
redis:
image: redis
volumes:
- ./tmp/redis:/var/lib/redis/data
networks:
- pre_screen_network
sidekiq:
build:
context: .
dockerfile: docker/sidekiq.Dockerfile
command: ["bundle", "exec", "sidekiq", "-e", "production", "-C", "config/sidekiq.yml"]
volumes:
- .:/app
environment:
RAILS_ENV: "production"
REDIS_URL: "redis://redis:6379/12"
env_file:
- .env
depends_on:
- redis
- postgres
networks:
- pre_screen_network
networks:
pre_screen_network: