version: '3' services: database: image: postgres:13.4-alpine environment: - POSTGRES_USER=hedgedoc - POSTGRES_PASSWORD=password - POSTGRES_DB=hedgedoc volumes: - ../data/hedgedoc/database:/var/lib/postgresql/data restart: always hedgedoc: # Make sure to use the latest release from https://hedgedoc.org/latest-release image: quay.io/hedgedoc/hedgedoc:1.9.3 env_file: - ../env.production - env.production - ../data/hedgedoc/env.secrets environment: #- CMD_CSP_ENABLE=false - CMD_DB_URL=postgres://hedgedoc:password@database:5432/hedgedoc - CMD_PROTOCOL_USESSL=true - CMD_ALLOW_ANONYMOUS=false # anonymous user's can't create notes - CMD_ALLOW_ANONYMOUS_EDITS=true # but they can be invited to edit notes - CMD_ALLOW_FREEURL=true # users can create arbitrary names - CMD_EMAIL=false # only oauth logins # DOMAIN and OAUTH2 variables are now in env.secret volumes: - ../data/hedgedoc/uploads:/hedgedoc/public/uploads ports: - "3000:3000" restart: always depends_on: - database