-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.22 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
57
version: "3.5"
services:
frontend:
container_name: pah-fm-frontend
build: frontend
ports:
- 8080:8080 # webui
volumes:
- /pah-fm/frontend/node_modules
- ./frontend:/pah-fm/frontend
environment:
VUE_APP_API_URL: http://localhost:8000/api/
frontend-react:
container_name: pah-fm-frontend-react
build: frontend-react
ports:
- 8090:8090 # webui
volumes:
- /pah-fm/frontend-react/node_modules
- ./frontend-react:/pah-fm/frontend-react
environment:
REACT_APP_BACKEND_URL: http://localhost:8000/api/
PORT: 8090
backend:
container_name: pah-fm-backend
build: backend
stdin_open: true
tty: true
ports:
- 8000:8000 # rest api
- 4444:4444 # debugging
volumes:
- ./backend:/pah-fm/backend
- /pah-fm/backend/.venv
environment:
DEBUG: 1
SECRET_KEY: pah-fm
DJANGO_LOG_LEVEL: DEBUG
PAH_FM_DB_HOST: database
database:
container_name: pah-fm-database
image: postgres:14.4
ports:
- 5432:5432
volumes:
- database:/var/lib/postgresql/data/
environment:
POSTGRES_DB: pah-fm
POSTGRES_USER: pah-fm
POSTGRES_PASSWORD: pah-fm
volumes:
database: