HomeLab/dockercompose/gamevault/docker-compose.yml

45 lines
1.4 KiB
YAML

version: "3.8"
services:
gamevault-backend:
container_name: gamevault-backend
image: phalcode/gamevault-backend:latest
restart: unless-stopped
environment:
DB_HOST: db
DB_USERNAME: gamevault
DB_PASSWORD: <DB-PASSWORD>
# The Following Line grants Admin Role to account with this username upon registration.
SERVER_ADMIN_USERNAME: <admin-account>
# Uncomment and Insert your RAWG API Key here if you have one (http://rawg.io/login?forward=developer)
# RAWG_API_KEY: YOURAPIKEYHERE
volumes:
# Mount the folder where your games are
- gamevault_games:/files
# Mount the folder where gamevault should store its images
- gamevault_images:/images
ports:
- 8282:8080
db:
image: postgres:15
restart: unless-stopped
environment:
POSTGRES_USER: gamevault
POSTGRES_PASSWORD: <DB-PASSWORD>
POSTGRES_DB: gamevault
volumes:
# Mount the folder where your postgres database files should land
- ./postgres:/var/lib/postgresql/data
volumes:
gamevault_games:
driver_opts:
type: "nfs"
o: "addr=10.0.10.10,nolock,soft,rw"
device: ":/mnt/General_Tank/General/GameVault/Games"
gamevault_images:
driver_opts:
type: "nfs"
o: "addr=10.0.10.10,nolock,soft,rw"
device: ":/mnt/General_Tank/General/GameVault/Images"