29 lines
582 B
YAML
29 lines
582 B
YAML
services:
|
|
app:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
target: app
|
|
environment:
|
|
APP_ENV: prod
|
|
APP_DEBUG: "0"
|
|
APP_SECRET: ${APP_SECRET:-change-me}
|
|
DATABASE_URL: sqlite:////app/var/data/app.db
|
|
APP_CACHE_DIR: /app/var/bootstrap-cache
|
|
volumes:
|
|
- app-data:/app/var/data
|
|
- app-cache:/app/var/bootstrap-cache
|
|
|
|
nginx:
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile
|
|
target: web
|
|
depends_on:
|
|
- app
|
|
ports:
|
|
- "${HTTP_PORT:-8080}:80"
|
|
|
|
volumes:
|
|
app-data:
|
|
app-cache:
|