-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yml
More file actions
31 lines (30 loc) · 919 Bytes
/
compose.yml
File metadata and controls
31 lines (30 loc) · 919 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
services:
web:
env_file: "docker/env/web"
user: "${UID:-1000}:${GID:-1000}"
build:
context: .
dockerfile: "Dockerfile"
image: dokku-flask-sample-web:latest
command: bash -c "python migra_banco.py && gunicorn --reload --log-file - --access-logfile - --bind=0.0.0.0:5000 app:app"
volumes:
- ${PWD}/docker/data/web:/data
- ${PWD}:/app
ports:
- 5000:5000
depends_on:
db:
condition: service_healthy
db:
env_file: "docker/env/db"
user: "${UID:-1000}:${GID:-1000}"
shm_size: "1g"
image: "postgres:16.2-bullseye"
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