services: mensa-app: image: ghcr.io/kronos-et-al/mensa-app #command: --migrate # only run for the first time to create initial database structure #command: --migrate-images # run once when migrating from flickr to local image solution ports: - 80:80 environment: # please configure accordingly <------------------------------------------------------------ - DATABASE_URL=postgres://postgres:secret_password@database/mensa_app # (a) only change password if wanted - SMTP_SERVER= - SMTP_PORT= - SMTP_USERNAME= - SMTP_PASSWORD= - ADMIN_EMAIL= - GOOGLE_PROJECT_ID= - BASE_URL= - TZ=Europe/Berlin volumes: # please configure accordingly <----------------------------------------------------------- - :/data/images:rw - :/data/service_account.json:ro restart: unless-stopped depends_on: - database database: image: postgres:16 volumes: - dbdata:/var/lib/postgresql/data # or specify path where your database should be stored environment: - POSTGRES_USER=postgres - POSTGRES_PASSWORD=secret_password # (a) change here and above <------------------------------------------ - POSTGRES_DB=mensa_app - TZ=Europe/Berlin - PGTZ=Europe/Berlin restart: unless-stopped admin: image: dpage/pgadmin4 environment: # change <---------------------------------------------------------------------------------- - PGADMIN_DEFAULT_EMAIL= - PGADMIN_DEFAULT_PASSWORD= - TZ=Europe/Berlin ports: - 8080:80 volumes: - pgadmin:/var/lib/pgadmin restart: unless-stopped depends_on: - database volumes: dbdata: pgadmin: