-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
gamevault.yml
49 lines (45 loc) · 1.52 KB
/
gamevault.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# DOMAIN=example.com docker stack deploy -c gamevault.yml gamevault
services:
app:
image: ethibox/gamevault:${VERSION:-latest}
environment:
- DB_HOST=postgres
- DB_USERNAME=gamevault
- DB_PASSWORD=myp@ssw0rd
- DB_SYSTEM=postgresql
- SERVER_ACCOUNT_ACTIVATION_DISABLED=${SERVER_ACCOUNT_ACTIVATION_DISABLED:-false}
- SERVER_ADMIN_USERNAME=${ADMIN_USERNAME:-admin}
- SERVER_ADMIN_PASSWORD=${SERVER_ADMIN_PASSWORD:-myp@ssw0rd}
- RAWG_API_KEY=${RAWG_API_KEY:-yourapikeyhere}
deploy:
labels:
- traefik.enable=true
- traefik.http.routers.gamevault-${NUMBER:-1}.rule=Host(`${DOMAIN:-gamevault.localhost}`)
- traefik.http.routers.gamevault-${NUMBER:-1}.entrypoints=${SCHEME:-https}
- traefik.http.routers.gamevault-${NUMBER:-1}.service=gamevault-${NUMBER:-1}
- traefik.http.routers.gamevault-${NUMBER:-1}.tls.certresolver=letsencrypt
- traefik.http.services.gamevault-${NUMBER:-1}.loadbalancer.server.port=8080
networks:
- internal
- traefik
postgres:
image: postgres:${POSTGRES_VERSION:-12-alpine}
environment:
- POSTGRES_DB=gamevault
- POSTGRES_USER=gamevault
- POSTGRES_PASSWORD=myp@ssw0rd
healthcheck:
test: ["CMD", "pg_isready", "-U", "gamevault"]
volumes:
- ${VOLUME_PATH}postgres:/var/lib/postgresql/data
networks:
- internal
volumes:
postgres:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net