Files
AdventureLog/docker/docker-compose.yml
Sean Morley d22c55e182 Refactor deployment configurations and update documentation
- Replaced the All-in-One (AIO) deployment setup with a Standard Deployment configuration, introducing .env.advanced.example for advanced settings.
- Updated .dockerignore to reflect the new environment file structure.
- Removed .env.aio.example and associated references from documentation and workflows.
- Enhanced installation instructions to clarify the new Standard Deployment process.
- Updated GitHub Actions workflows to align with the new deployment structure, including smoke tests and image builds.
- Improved documentation for environment variable references and deployment options.
2026-06-12 21:49:01 -04:00

56 lines
1.4 KiB
YAML

services:
app:
# build:
# context: ..
# dockerfile: docker/Dockerfile
# target: aio
image: ghcr.io/seanmorley15/adventurelog:latest
container_name: adventurelog
restart: unless-stopped
env_file: ../.env
environment:
SITE_URL: ${SITE_URL:-http://localhost:8015}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env or your environment}
PGHOST: db
POSTGRES_DB: database
POSTGRES_USER: adventure
PORT: "3000"
ports:
- "${HOST_PORT:-8015}:80"
volumes:
- adventurelog_media:/code/media/
depends_on:
db:
condition: service_healthy
healthcheck:
test:
[
"CMD-SHELL",
"python3 -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:80/health')\""
]
interval: 30s
timeout: 5s
retries: 5
start_period: 120s
db:
image: postgis/postgis:16-3.5
container_name: adventurelog-db
restart: unless-stopped
environment:
POSTGRES_DB: database
POSTGRES_USER: adventure
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env or your environment}
volumes:
- postgres_data:/var/lib/postgresql/data/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U adventure -d database"]
interval: 5s
timeout: 5s
retries: 5
start_period: 10s
volumes:
postgres_data:
adventurelog_media: