-
Notifications
You must be signed in to change notification settings - Fork 4
/
compose.yaml
42 lines (42 loc) · 1000 Bytes
/
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
services:
db:
image: postgres:16.2
restart: always
ports:
- "5432:5432"
environment:
- POSTGRES_USER=${DT_SQL_USER}
- POSTGRES_PASSWORD=${DT_SQL_PASS}
volumes:
- app_data:/var/lib/postgresql/data
backend:
build:
context: .
dockerfile: dockerfiles/Dockerfile.backend
image: dtbase_backend
ports:
- "5000:5000"
depends_on:
- db
environment:
- DT_SQL_USER=${DT_SQL_USER}
- DT_SQL_PASS=${DT_SQL_PASS}
- DT_SQL_HOST=db
- DT_SQL_PORT=5432
- DT_SQL_DBNAME=${DT_SQL_DBNAME}
- DT_DEFAULT_USER_PASS=${DT_DEFAULT_USER_PASS}
- DT_JWT_SECRET_KEY=${DT_JWT_SECRET_KEY}
frontend:
build:
context: .
dockerfile: dockerfiles/Dockerfile.frontend
image: dtbase_frontend
ports:
- "8000:8000"
depends_on:
- backend
environment:
- DT_BACKEND_URL=http://backend:5000
- DT_FRONT_SECRET_KEY=${DT_FRONT_SECRET_KEY}
volumes:
app_data: