This repository has been archived on 2023-05-07. You can view files and clone it, but cannot push or open issues or pull requests.
RocksForMedia/docker-compose.yml

29 lines
848 B
YAML

version: '3'
services:
rocksformedia:
build: .
depends_on:
database:
condition: service_healthy
ports:
- 8890:8890
environment:
DJANGO_SUPERUSER_USERNAME: "admin"
DJANGO_SUPERUSER_EMAIL: "admin@example.org"
DJANGO_SUPERUSER_PASSWORD: "changeme"
database:
image: 'postgres:alpine'
ports:
- 6665:5432
environment:
POSTGRES_USER: RocksForMedia # The PostgreSQL user (useful to connect to the database)
POSTGRES_PASSWORD: CHANGE-ME # The PostgreSQL password (useful to connect to the database)
POSTGRES_DB: RocksForMediaDB # The PostgreSQL default database (automatically created at first launch)
healthcheck:
test: "pg_isready -q -d RocksForMediaDB -U RocksForMedia"
timeout: 45s
interval: 10s
retries: 10
restart: always