-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (41 loc) · 860 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (41 loc) · 860 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
41
services:
postgres:
image: postgres:17-alpine3.20
restart: always
env_file:
- .env
volumes:
- ./postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD", "pg_isready", "-U", "postgres"]
interval: 10s
timeout: 5s
retries: 5
pgadmin:
image: dpage/pgadmin4:8.12
restart: always
ports:
- "5050:5050"
env_file:
- .env
volumes:
- ./pgadmin-data:/var/lib/pgadmin
depends_on:
- postgres
api-service:
restart: always
build:
context: .
dockerfile: Dockerfile
ports:
- "3000:3000"
env_file:
- .env
depends_on:
postgres:
condition: service_healthy
entrypoint: ["./wait-for-it.sh", "postgres:5432", "--", "/app/start.sh"]
command: ["/app/server"]
volumes:
postgres_data:
pgadmin_data: