-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (45 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
60 lines (45 loc) · 1.39 KB
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
58
59
60
version: '3.9'
# glpat-3fWUDke1zL_sTJxno5G8 # Full access
# curl --request GET --header "PRIVATE-TOKEN: glpat-jZzyVTG9yhttps://gitlab.com/api/v4/projects/43183534/access_requests"
# curl -H "PRIVATE-TOKEN: glpat-3fWUDke1zL_sTJxno5G8" "https://gitlab.com/api/v4/projects/43183534/repository/files/README.md/raw?ref=main" -o purge-cache.sh
services:
db:
image: postgres:14-alpine
ports:
- 5432
environment:
TZ: "${POSTGRES_TZ}"
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
volumes:
- ./data/db:/var/lib/postgresql/data/
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
environment:
WDS_SOCKET_PORT: ${FRONTEND_EXPOSE_PORT}
ports:
- ${FRONTEND_EXPOSE_PORT}:3000
volumes:
- ./frontend:/app/frontend
- /app/frontend/node_modules
depends_on:
- backend
backend:
build:
context: ./backend
dockerfile: Dockerfile
environment:
POSTGRES_USER: "${POSTGRES_USER}"
POSTGRES_PASSWORD: "${POSTGRES_PASSWORD}"
POSTGRES_DB: "${POSTGRES_DB}"
POSTGRES_HOST: "db"
POSTGRES_PORT: 5432
ports:
- ${DJANGO_EXPOSE_PORT}:8000
volumes:
- ./backend:/app/backend
depends_on:
- db