-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (54 loc) · 1.18 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
version: "3"
services:
api:
build:
dockerfile: "Dockerfile.dev"
context: ./todo-rails
env_file: .env
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- PGUSER=postgres
- PGPASSWORD=$PGPASSWORD
- PGHOST=db
- APPLICATION_URL=localhost
- MAIL_PASSWORD=$MAIL_PASSWORD
- RAILS_MASTER_KEY=$RAILS_MASTER_KEY
volumes:
- ./todo-rails:/app
depends_on:
- db
- redis
stdin_open: true
tty: true
nginx:
restart: always
build:
dockerfile: "Dockerfile.dev"
context: ./nginx
ports:
- "80:80"
sidekiq:
build:
dockerfile: "Dockerfile.dev"
context: ./todo-rails
env_file: .env
command: bundle exec sidekiq -C config/sidekiq.yml
db:
image: postgres:10.3-alpine
env_file: .env
environment:
- PGUSER=postgres
- PGPASSWORD=$PGPASSWORD
volumes:
- ./todo-rails/db-data:/var/lib/postgresql/db-data
redis:
image: redis:5.0.5-alpine
client:
build:
dockerfile: "Dockerfile.dev"
context: ./todo-react
volumes:
- /app/node_modules
- ./todo-react:/app