mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2026-02-07 05:10:58 -05:00
28 lines
828 B
YAML
28 lines
828 B
YAML
# Note: The 'aio' service combines both frontend and backend functionalities into a single container. This deployment is simplified for smaller setups, although for larger deployments visit the docker-compose.prod.yml for a more modular approach with separate services for frontend and backend.
|
|
services:
|
|
aio:
|
|
build:
|
|
context: .
|
|
dockerfile: aio/Dockerfile
|
|
container_name: adventurelog-aio
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
ports:
|
|
- "${APP_PORT:-8015}:80"
|
|
depends_on:
|
|
- db
|
|
volumes:
|
|
- adventurelog_media:/code/backend/server/media/
|
|
|
|
db:
|
|
image: postgis/postgis:16-3.5
|
|
container_name: adventurelog-db
|
|
restart: unless-stopped
|
|
env_file: .env
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data/
|
|
|
|
volumes:
|
|
postgres_data:
|
|
adventurelog_media:
|