2020-03-11 23:34:37 +01:00
|
|
|
version: '3'
|
|
|
|
services:
|
2020-03-17 16:52:36 +01:00
|
|
|
nginx:
|
|
|
|
image: nginx:latest
|
|
|
|
container_name: production_nginx
|
|
|
|
volumes:
|
|
|
|
- ./nginx.conf:/etc/nginx/nginx.conf
|
|
|
|
- ${NGINX_CERTIFICATE_DIR}:/etc/certs
|
|
|
|
ports:
|
|
|
|
- 443:443
|
|
|
|
depends_on:
|
|
|
|
- gonito
|
2020-03-11 23:34:37 +01:00
|
|
|
gonito:
|
2020-03-26 21:50:37 +01:00
|
|
|
image: loxygen/gonito:latest
|
2020-03-11 23:34:37 +01:00
|
|
|
depends_on:
|
|
|
|
- postgres
|
|
|
|
environment:
|
|
|
|
- PGUSER=postgres
|
|
|
|
- PGPASS=$POSTGRES_PASSWORD
|
|
|
|
- PGHOST=postgres
|
|
|
|
- ADMINUSER=$GONITO_ADMINUSER
|
|
|
|
- ADMINPASS=$GONITO_ADMINPASS
|
|
|
|
- LOCATION=$GONITO_LOCATION
|
2020-03-17 16:52:36 +01:00
|
|
|
- APPROOT=$GONITO_APPROOT
|
2021-08-21 15:02:08 +02:00
|
|
|
- REPO_HOST=$GONITO_REPO_HOST
|
|
|
|
- REPO_SCHEME=$GONITO_REPO_SCHEME
|
2020-03-17 16:52:36 +01:00
|
|
|
- LEADERBOARD_STYLE=${GONITO_LEADERBOARD_STYLE:-by-tag}
|
|
|
|
- AUTO_OPENING=${GONITO_AUTO_OPENING:-false}
|
2020-03-17 21:57:41 +01:00
|
|
|
- IS_PUBLIC=${GONITO_IS_PUBLIC:-true}
|
2020-12-11 08:26:55 +01:00
|
|
|
- JSON_WEB_KEY=${JSON_WEB_KEY}
|
2021-02-27 22:48:48 +01:00
|
|
|
- VIEWING_PROGRESS_STYLE=${GONITO_VIEWING_PROGRESS_STYLE:-with-web-sockets}
|
2021-06-29 08:51:28 +02:00
|
|
|
- AUTO_TEAM=${GONITO_AUTO_TEAM:-false}
|
|
|
|
- TEAM_FIELD=$GONITO_TEAM_FIELD
|
2021-08-21 10:48:34 +02:00
|
|
|
- ANNOUNCEMENT_HOOK=${GONITO_ANNOUNCEMENT_HOOK}
|
2021-08-21 11:48:05 +02:00
|
|
|
- MENULESS=${GONITO_MENULESS}
|
2020-03-17 16:52:36 +01:00
|
|
|
expose:
|
|
|
|
- "3000"
|
|
|
|
volumes:
|
|
|
|
- "${GONITO_ARENA_VOLUME}:/gonito/arena"
|
2020-03-26 21:50:37 +01:00
|
|
|
- "${GONITO_SSH_DIRECTORY}:/root/.ssh"
|
2020-03-11 23:34:37 +01:00
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
environment:
|
|
|
|
- POSTGRES_PASSWORD=$POSTGRES_PASSWORD
|
|
|
|
- POSTGRES_DB=gonito
|
|
|
|
expose:
|
|
|
|
- "5432"
|
|
|
|
volumes:
|
|
|
|
- "${PG_DATA_VOLUME}:/var/lib/postgresql/data"
|