-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from kronos-et-al/b/docker
B/docker
- Loading branch information
Showing
5 changed files
with
62 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
services: | ||
mensa-app: | ||
image: ghcr.io/kronos-et-al/mensa-app | ||
#command: --migrate # only run for the first time to create initial database structure | ||
ports: | ||
- 80:80 | ||
environment: # please configure accordingly <------------------------------------------------------------ | ||
- DATABASE_URL=postgres://postgres:secret_password@database/mensa_app # only change password if wanted | ||
- SMTP_SERVER=<domain of mail server> | ||
- SMTP_PORT=<port of mail server> | ||
- SMTP_USERNAME=<username of mail server> | ||
- SMTP_PASSWORD=<password of mail server> | ||
- ADMIN_EMAIL=<email address admin notofocations should be send to> | ||
- FLICKR_API_KEY=<flickr public api key> | ||
- TZ=Europe/Berlin | ||
restart: unless-stopped | ||
depends_on: | ||
- database | ||
database: | ||
image: postgres | ||
volumes: | ||
- dbdata:/var/lib/postgresql/data | ||
environment: | ||
- POSTGRES_USER=postgres | ||
- POSTGRES_PASSWORD=secret_password # change here and above <------------------------------------------ | ||
- POSTGRES_DB=mensa_app | ||
- TZ=Europe/Berlin | ||
restart: unless-stopped | ||
admin: | ||
image: dpage/pgadmin4 | ||
environment: # change <---------------------------------------------------------------------------------- | ||
- PGADMIN_DEFAULT_EMAIL= | ||
- PGADMIN_DEFAULT_PASSWORD= | ||
- TZ=Europe/Berlin | ||
ports: | ||
- 8888:80 | ||
volumes: | ||
- pgadmin:/var/lib/pgadmin | ||
restart: unless-stopped | ||
depends_on: | ||
- database | ||
|
||
volumes: | ||
dbdata: | ||
pgadmin: |