-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (36 loc) · 850 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (36 loc) · 850 Bytes
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
version: "3.3"
services:
db:
image: postgres:latest
restart: always
environment:
POSTGRES_USER: backendgang
POSTGRES_PASSWORD: backendgang
POSTGRES_DB: backend
PGPORT: 8010
ports:
- 8010:8010
networks:
- microservice-network
db-manager:
# pgadmin database manager, up to personal preference
image: dpage/pgadmin4:latest
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: backend@backend.xyz
PGADMIN_DEFAULT_PASSWORD: backend
ports:
- 8011:80
networks:
- microservice-network
wait-for-db:
# check if database is up before execution of uvicorn
image: atkrad/wait4x
depends_on:
- db
command: tcp db:8010 -t 30s -i 500ms
networks:
- microservice-network
networks:
microservice-network:
external: true