nquest/docker-compose.yml

37 lines
656 B
YAML

version: '3.8'
volumes:
postgres-data:
storage:
frontend:
services:
caddy:
build:
context: .
dockerfile: build/caddy/Dockerfile
volumes:
- frontend:/app/frontend/dist:ro
- storage:/app/store:ro
ports:
- 8989:80
depends_on:
- app
app:
build:
context: .
dockerfile: build/api/Dockerfile
depends_on:
- db
env_file:
- .env
volumes:
- frontend:/app/frontend/dist:rw
- storage:/app/store:rw
db:
image: postgres:15-alpine3.17
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
env_file:
- .env