Files
SpiceManagementSystem/docker-compose.yml
T
Malek TellissiandClaude Sonnet 4.6 a9d14e4bde
Deploy / deploy (push) Successful in 14s
Run app on host port 5000 behind reverse proxy
Caddy still listens on :80 inside the container, but only port 5000 is
exposed to the host. Removes 443/HTTPS ports and Caddy cert volumes —
TLS is handled by the upstream reverse proxy.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-09-11 02:23:36 +02:00

50 lines
1.2 KiB
YAML

services:
app:
build: .
restart: unless-stopped
ports:
- "5000:80"
environment:
SERVER_NAME: ":80"
APP_ENV: "${APP_ENV:-production}"
APP_KEY: "${APP_KEY}"
APP_URL: "${APP_URL}"
APP_DEBUG: "${APP_DEBUG:-false}"
DB_CONNECTION: mariadb
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: "${DB_DATABASE:-spices}"
DB_USERNAME: "${DB_USERNAME:-spices}"
DB_PASSWORD: "${DB_PASSWORD}"
SESSION_DRIVER: file
CACHE_DRIVER: file
QUEUE_CONNECTION: sync
LOG_CHANNEL: stderr
volumes:
- storage_uploads:/app/storage/app
- storage_logs:/app/storage/logs
depends_on:
db:
condition: service_healthy
db:
image: mariadb:10.11
restart: unless-stopped
environment:
MARIADB_DATABASE: "${DB_DATABASE:-spices}"
MARIADB_USER: "${DB_USERNAME:-spices}"
MARIADB_PASSWORD: "${DB_PASSWORD}"
MARIADB_ROOT_PASSWORD: "${DB_ROOT_PASSWORD}"
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 10
volumes:
db_data:
storage_uploads:
storage_logs: