version: '3' services: cannery: image: shibaobun/cannery container_name: cannery restart: always environment: - HOST="your.domain.com" - DATABASE_URL="ecto://postgres:postgres@cannery-db/cannery" # Use `docker run -it shibaobun/cannery mix phx.gen.secret` to generate a secret key base - SECRET_KEY_BASE="change-me-this-is-really-important-seriously-change-it" # uncomment to enable sign ups, watch for spam! # - REGISTRATION="public" expose: - "4000" depends_on: - cannery-db cannery-db: image: postgres:13 container_name: cannery-db environment: - POSTGRES_USER="postgres" - POSTGRES_PASSWORD="postgres" - POSTGRES_DB="cannery" restart: always volumes: - ./data:/var/lib/postgresql/data