19 lines
479 B
YAML
19 lines
479 B
YAML
services:
|
|||
|
|
app:
|
||
|
|
build: .
|
||
|
|
image: php-todo-list
|
||
|
|
ports:
|
||
|
|
- "8080:80"
|
||
|
|
environment:
|
||
|
|
APP_DEBUG: "${APP_DEBUG:-false}"
|
||
|
|
# Leave blank to auto-generate a secret into the storage volume on first run.
|
||
|
|
JWT_SECRET: "${JWT_SECRET:-}"
|
||
|
|
JWT_TTL: "${JWT_TTL:-86400}"
|
||
|
|
volumes:
|
||
|
|
# Persists the SQLite database and the generated signing key across restarts.
|
||
|
|
- storage:/var/www/html/storage
|
||
|
|
restart: unless-stopped
|
||
|
|
|
||
|
|
volumes:
|
||
|
|
storage:
|