-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
49 lines (49 loc) · 1.02 KB
/
docker-compose.yaml
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
version: "3"
services:
ingress:
image: hsndocker/backend-local-nginx:latest
ports:
- "8000:80"
networks:
- engineerx-backend
volumes:
- static:/home/app/web/static
- media:/home/app/web/media
depends_on:
- backend
backend:
image: hsndocker/backend:latest
ports:
- "8001:8000"
entrypoint: ["/bin/sh","-c"]
command:
- |
./wait-for-it.sh -t 60 db:5432 -- ./start-local.sh
environment:
- POSTGRES_PASSWORD=password
- FRONTEND_URL=http://127.0.0.1:3000
- SECRET_KEY=secretkey
- ALLOWED_HOST=*
networks:
- engineerx-backend
volumes:
- static:/app/static
- media:/app/media
depends_on:
- db
db:
image: hsndocker/backend-postgres:latest
ports:
- "5432:5432"
environment:
- POSTGRES_PASSWORD=password
networks:
- engineerx-backend
networks:
engineerx-backend:
driver: bridge
volumes:
static:
driver: local
media:
driver: local