Files
AdventureLog/docker-compose.aio.yml
Sean Morley 7f6bf1390a Add Docker and environment configuration files for AdventureLog
- Introduced .dockerignore to exclude unnecessary files from Docker context.
- Added .env.aio.example for minimal configuration of the AdventureLog All-in-One setup.
- Updated .env.example to include optional SITE_URL and GUNICORN_WORKERS settings.
- Enhanced deploy.sh script for improved deployment flexibility and backup options.
- Updated docker-compose files to use PostGIS 16-3.5 and added health checks for services.
- Created docker-compose.aio.yml for All-in-One deployment configuration.
- Improved health checks and service dependencies in docker-compose.dev.yml and docker-compose.yml.
- Added GitHub workflows for building and pushing Docker images, including smoke tests for AIO setup.
2026-06-06 18:54:25 -04:00

56 lines
1.4 KiB
YAML

services:
app:
build:
context: .
dockerfile: docker/Dockerfile
target: aio
image: ghcr.io/seanmorley15/adventurelog-aio:latest
container_name: adventurelog-aio
restart: unless-stopped
env_file: .env.aio
environment:
SITE_URL: ${SITE_URL:-http://localhost:8015}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env.aio 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-aio-db
restart: unless-stopped
environment:
POSTGRES_DB: database
POSTGRES_USER: adventure
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:?Set POSTGRES_PASSWORD in .env.aio 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: