-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
66 lines (62 loc) · 1.57 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.8"
services:
data_quality_tool:
build:
context: ./data_quality_tool
dockerfile: Dockerfile
ports:
- "8000:8000"
environment:
- FLASK_ENV=${FLASK_ENV}
- FLASK_DEBUG=${FLASK_DEBUG}
datacatalogdb:
image: postgres:15
volumes:
- ./.stored_data/datacatalogdb:/var/lib/postgresql/data
hostname: datacatalogdb
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
command: -p 5432
ports:
- "5432:5432"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: backend
ports:
- "8090:8090"
environment:
### Database ###
- DB_URL=${DB_URL}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
### Frontend ###
- PUBLIC_HOST=${PUBLIC_HOST}
- DQT_URL=${DQT_URL}
### Keycloak ###
- AUTHENTICATION=${AUTHENTICATION}
- KEYCLOAK_AUTH_URL=${KEYCLOAK_AUTH_URL}
- KEYCLOAK_REALM=${KEYCLOAK_REALM}
- KEYCLOAK_CLIENT_ID=${KEYCLOAK_CLIENT_ID}
- KEYCLOAK_CLIENT_SECRET=${KEYCLOAK_CLIENT_SECRET}
- KEYCLOAK_SSL_REQUIRED=${KEYCLOAK_SSL_REQUIRED}
depends_on:
datacatalogdb:
condition: service_healthy
restart: unless-stopped
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: frontend
ports:
- "80:80" # Expose the frontend on port 80
depends_on:
- backend