-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (63 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
61
62
63
64
65
66
67
68
version: "3.8"
services:
redis:
image: redis
command: redis-server
environment:
REDIS_URL: redis://redis:6379/1
volumes:
- ./tmp/redis:/data
db:
image: postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: godwd_development
volumes:
- ./tmp/db:/var/lib/postgresql/data
ports:
- 5432:5432
sidekiq:
build:
context: .
dockerfile: ./docker/app/Dockerfile-rails
# command: "bundle exec sidekiq -C config/sidekiq.yml"
# volumes:
# - .:/myapp
environment:
- RAILS_ENV=$RAILS_ENV
- REDIS_URL=redis://redis:6379/1
- ENABLE_BOOTSNAP=true
depends_on:
- redis
- db
env_file: .env
app:
build:
context: .
dockerfile: ./docker/app/Dockerfile-rails
args:
RAILS_ENV: $RAILS_ENV
depends_on:
- db
- redis
# command: "bundle exec puma -C config/puma.rb"
environment:
- RAILS_ENV=$RAILS_ENV
- REDIS_URL=redis://redis:6379/1
- POSTGRES_PASSWORD=postgres
- ENABLE_BOOTSNAP=true
ports:
- "3001:3001"
env_file: .env
web:
build:
context: .
dockerfile: ./docker/web/Dockerfile-nginx
args:
RAILS_ENV: $RAILS_ENV
ports:
- 8080:80
depends_on:
- app