-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
46 lines (44 loc) · 1.01 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
version: '3'
services:
frontend:
container_name: dr_example_frontend
hostname: dr_example_frontend
build: "frontend/"
command: sh /code/frontend/entrypoint.sh
working_dir: /code/frontend
env_file: .env
ports:
- 8101:3000
volumes:
- ./frontend:/code/frontend
- '/code/frontend/node_modules'
db:
container_name: dr_example_db
hostname: dr_example_db
build: "deploy/docker/postgres/"
env_file: .env
volumes:
- pgdata:/var/lib/postgresql/data/ # Preserves db between runs.
ports:
- 5432
backend:
container_name: dr_example_backend
hostname: dr_example_backend
build: .
command: sh /code/backend/entrypoint.sh
entrypoint: sh /code/deploy/docker/postgres/wait-for-postgres.sh
volumes:
- .:/code
env_file: .env
ports:
- 8000:8000
links:
- db
- frontend
depends_on:
- db
- frontend
volumes:
backend:
frontend:
pgdata: