-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
47 lines (43 loc) · 850 Bytes
/
docker-compose.yaml
File metadata and controls
47 lines (43 loc) · 850 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
version: '3.1'
services:
frontend:
build:
context: ./frontend/dashboard
command: npm start
ports:
- "3000:3000"
depends_on:
- api
links:
- "api:backend"
restart: always
postgres:
image: postgres
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PGDATA: /data/postgres
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
restart: always
api:
build:
context: ./backend
command: sh -c "python3 manage.py migrate && python3 manage.py runserver 0.0.0.0:8000"
environment:
PYTHONDONTWRITEBYTECODE: 1
volumes:
- ./backend:/code
expose:
- 8000
ports:
- "8000:8000"
depends_on:
- postgres
links:
- "postgres:db"
restart: always
volumes:
postgres: