-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
48 lines (45 loc) · 981 Bytes
/
compose.yaml
File metadata and controls
48 lines (45 loc) · 981 Bytes
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
services:
db:
image: postgres
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U XgkJUcqxEw -d commerce_store"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- commerce_store_dev_db_data:/var/lib/postgresql/data
pgadmin4:
image: dpage/pgadmin4
ports:
- 8001:80
env_file:
- .env
volumes:
- commerce_store_dev_pgadmin_data:/var/lib/pgadmin
depends_on:
db:
condition: service_healthy
api:
build:
context: .
dockerfile: ./docker/dev/Dockerfile
args:
USER_ID: ${UID}
GROUP_ID: ${GID}
image: commerce_store:dev
ports:
- 8000:8000
volumes:
- ./:/usr/src/app
user: "${UID}:${GID}"
command: python manage.py runserver 0.0.0.0:8000
env_file:
- .env
depends_on:
db:
condition: service_healthy
volumes:
commerce_store_dev_db_data:
commerce_store_dev_pgadmin_data: