version: '3' services: memex: build: context: . container_name: memex restart: always environment: # HOST must be set! # - HOST=your.domain.com - DATABASE_URL=ecto://postgres:postgres@memex-db/memex # Use `docker run -it shibaobun/memex /app/priv/random.sh` to generate a secret key base # - SECRET_KEY_BASE=change-me-this-is-really-important-seriously-change-it # uncomment to enable public sign ups, not recommended # - REGISTRATION=public # SMTP host must be set! # - SMTP_HOST=smtp.mailserver.tld # optional, default is 587 # - SMTP_PORT=587 # SMTP username/passwords must be set! # - SMTP_USERNAME=username # - SMTP_PASSWORD=password # optional, default is false # - SMTP_SSL=false # optional, default is format below # - EMAIL_FROM=no-reply@memex.example.tld # optional, default is "memEx" # - EMAIL_NAME=memEx expose: - "4000" depends_on: - memex-db memex-db: image: postgres:13 container_name: memex-db environment: - POSTGRES_USER="postgres" - POSTGRES_PASSWORD="postgres" - POSTGRES_DB="memex" restart: always volumes: - ./data:/var/lib/postgresql/data