-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
85 lines (78 loc) · 1.76 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
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
version: '3.8'
services:
audit-service:
build: .
command: python /app/main.py
depends_on:
user-management-service:
condition: service_started
db:
condition: service_healthy
manager:
condition: service_started
volumes:
- ./app:/app
ports:
- ${AUDIT_SERVICE_PORT}:${AUDIT_SERVICE_PORT}
networks:
- microservice-network
env_file:
- .env
user-management-service:
image: ghcr.io/projekt-datascience/backend-user-management:release
depends_on:
db:
condition: service_healthy
manager:
condition: service_started
ports:
- ${USER_MANAGEMENT_SERVICE_PORT}:${USER_MANAGEMENT_SERVICE_PORT}
networks:
- microservice-network
env_file:
- .env
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:
- microservice-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:
- microservice-network
manager:
image: ghcr.io/projekt-datascience/manager:release
env_file:
- .env
depends_on:
db:
condition: service_healthy
volumes:
- manager_volume:/root
networks:
- microservice-network
networks:
microservice-network:
volumes:
manager_volume: