-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
52 lines (48 loc) · 1009 Bytes
/
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
version: "3.3"
services:
backend-user-management:
build: .
volumes:
- ./:/code
command: python /code/app/main.py
depends_on:
db:
condition: service_healthy
ports:
- "8001:8001"
expose:
- "8001"
networks:
- microservice-network
db:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: backendgang
POSTGRES_PASSWORD: backendgang
POSTGRES_DB: backend
PGPORT: 8010
ports:
- "8010:8010"
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: backend@backend.xyz
PGADMIN_DEFAULT_PASSWORD: backend
ports:
- 8080:80
networks:
- microservice-network
networks:
microservice-network: