-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
64 lines (60 loc) · 1.27 KB
/
docker-compose.yaml
File metadata and controls
64 lines (60 loc) · 1.27 KB
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
services:
api-diff:
build:
context: .
dockerfile: Dockerfile
args:
ENVIRONMENT: local
ports:
- 8081:8081
networks:
- diff_network
depends_on:
diff_database:
condition: service_healthy
diff_migrate:
condition: service_completed_successfully
diff_migrate:
container_name: diff_migrate
build:
context: .
dockerfile: Dockerfile.migrate
args:
ENVIRONMENT: local
networks:
- diff_network
depends_on:
diff_database:
condition: service_healthy
diff_database:
image: postgres
container_name: diff_database
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password123
POSTGRES_DB: diff
ports:
- 54321:5432
networks:
- diff_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -d diff"]
interval: 10s
timeout: 5s
retries: 5
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: admin
ports:
- 5050:80
networks:
- diff_network
depends_on:
diff_database:
condition: service_healthy
networks:
diff_network:
driver: bridge