-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
40 lines (39 loc) · 885 Bytes
/
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
services:
postgres:
image: "postgis/postgis:17-3.5-alpine"
restart: always
volumes:
- postgres-data:/var/lib/postgresql/data/
# Non-default port so we don't interfere with system Postgres
ports:
- "6543:5432"
environment:
POSTGRES_USER: postgres
POSTGRES_DB: edtear
# This will contain our password
env_file: "postgres.env"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
logging:
driver: "json-file"
options:
max-file: 3
max-size: 25m
edtear:
build: .
env_file: "postgres.env"
restart: always
depends_on:
postgres:
condition: service_healthy
restart: true
logging:
driver: "json-file"
options:
max-file: 3
max-size: 25m
volumes:
postgres-data: