-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-backend.yml
87 lines (78 loc) · 1.68 KB
/
docker-compose-backend.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
version: '3.8'
services:
gateway:
image: ghcr.io/projekt-datascience/gateway:release
restart: always
ports:
- "0.0.0.0:80:80"
depends_on:
- audit
- user-management
networks:
- service-network
audit:
image: ghcr.io/projekt-datascience/backend-audit:release
depends_on:
db:
condition: service_healthy
networks:
- service-network
env_file:
- .env
user-management:
image: ghcr.io/projekt-datascience/backend-user-management:release
env_file:
- .env
networks:
- service-network
tasks:
image: ghcr.io/projekt-datascience/backend-tasks:release
env_file:
- .env
networks:
- service-network
db:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_NAME}
PGPORT: ${DB_PORT}
ports:
- ${DB_PORT}:${DB_PORT}
networks:
- service-network
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
db-manager:
image: dpage/pgadmin4:latest
restart: always
depends_on:
db:
condition: service_healthy
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
ports:
- 8080:80
networks:
- service-network
manager:
image: ghcr.io/projekt-datascience/manager:release
depends_on:
db:
condition: service_healthy
env_file:
- .env
volumes:
- manager_volume:/root
networks:
- service-network
networks:
service-network:
volumes:
manager_volume: