-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
51 lines (48 loc) · 1.06 KB
/
compose.yaml
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
services:
api:
container_name: estimmo-api
image: ghcr.io/jamie-mh/estimmo-api:latest
restart: always
ports:
- 8081:8080
environment:
- DOTNET_ENVIRONMENT=Production
depends_on:
postgres:
condition: service_healthy
networks:
- estimmo
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/api/health"]
interval: 30s
timeout: 10s
retries: 10
start_interval: 10s
start_period: 30s
postgres:
container_name: estimmo-postgres
image: ghcr.io/jamie-mh/estimmo-postgres:latest
restart: always
shm_size: 2g
volumes:
- db-data:/var/lib/postgresql/data
networks:
- estimmo
environment:
- POSTGRES_USER=estimmo
- PGUSER=estimmo
- POSTGRES_DB=estimmo
- POSTGRES_PASSWORD=estimmo
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 30s
timeout: 5s
retries: 10
start_interval: 5s
start_period: 30s
volumes:
db-data:
driver: local
networks:
estimmo:
driver: bridge