-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
53 lines (49 loc) · 1.1 KB
/
docker-compose.test.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
version: '3.8'
services:
web:
build: .
command: python /app/main.py
volumes:
- ./app:/app
ports:
- ${TASKS_SERVICE_PORT}:${TASKS_SERVICE_PORT}
depends_on:
db:
condition: service_healthy
manager:
condition: service_started
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}
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
env_file:
- .env
manager:
image: ghcr.io/projekt-datascience/manager:release
depends_on:
db:
condition: service_healthy
env_file:
- .env
user-management-service:
image: ghcr.io/projekt-datascience/backend-user-management:release
env_file:
- .env
depends_on:
db:
condition: service_healthy
manager:
condition: service_started
ports:
- ${USER_MANAGEMENT_SERVICE_PORT}:${USER_MANAGEMENT_SERVICE_PORT}