Docker Compose Configuration
version: '3.8'
services:
postgres:
image: postgres:15
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DATABASE=postgres
volumes:
- /home/ubuntu/data/movie-web/pg_data:/var/lib/postgresql/data
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
sudo-flix-backend:
image: ghcr.io/sussy-code/backend:latest
restart: unless-stopped
environment:
- MWB_POSTGRES__CONNECTION=postgres://postgres:postgres@postgres/postgres
- MWB_CRYPTO__SESSION_SECRET=CHANGEME
- MWB_POSTGRES__MIGRATE_ON_BOOT=true
- MWB_META__NAME=testing
- MWB_SERVER__ALLOW_ANY_SITE=true
- MWB_CAPTCHA__ENABLED=true
- MWB_CAPTCHA__SECRET=
- MWB_CAPTCHA__CLIENT_KEY=
ports:
- '7072:80'
depends_on:
- 'postgres'
Note: /home/ubuntu/data/movie-web/pg-data is where the postgres data is stored