31 lines
555 B
YAML
31 lines
555 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
web:
|
|
build: .
|
|
ports:
|
|
- "10335:5000"
|
|
volumes:
|
|
- ./uploads:/app/uploads
|
|
env_file:
|
|
- stack.env
|
|
depends_on:
|
|
db:
|
|
condition: service_healthy
|
|
|
|
db:
|
|
image: postgres:13
|
|
env_file:
|
|
- stack.env
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "PGPASSWORD=1253 pg_isready -U postgres -d docupulse"]
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 5
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
postgres_data:
|
|
uploads: |