-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
35 lines (34 loc) · 902 Bytes
/
compose.yml
File metadata and controls
35 lines (34 loc) · 902 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
services:
main:
env_file:
- "docker/env/main"
- "docker/env/main.local"
user: "${UID:-1000}:${GID:-1000}"
build:
context: .
dockerfile: "Dockerfile"
args:
DEV_BUILD: "true"
pull_policy: build
image: dados-aviacao-main:latest
volumes:
- ${PWD}/docker/data/main:/data
- ${PWD}:/app
depends_on:
db:
condition: service_healthy
db:
env_file:
- "docker/env/db"
- "docker/env/db.local"
user: "${UID:-1000}:${GID:-1000}"
shm_size: "1g"
image: "postgres:16.3-bookworm"
command: -c "config_file=/etc/postgresql/postgresql.conf"
volumes:
- ${PWD}/docker/data/db:/var/lib/postgresql/data
- ${PWD}/docker/conf/db/postgresql.dev.conf:/etc/postgresql/postgresql.conf
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
retries: 5