41 lines
1.5 KiB
YAML
41 lines
1.5 KiB
YAML
services:
|
|
swrp-fivem:
|
|
image: spritsail/fivem
|
|
container_name: swrp-fivem
|
|
stdin_open: true
|
|
tty: true
|
|
ports:
|
|
- '30120:30120/tcp'
|
|
- '30120:30120/udp'
|
|
volumes:
|
|
# Server config and default FiveM resources (initialized on first run)
|
|
- ./fivem-data:/config
|
|
# Our sw-rp resource (compiled dist + node_modules + ormconfig.js)
|
|
- ./fivem-server:/config/resources/sw-rp
|
|
environment:
|
|
- TZ=Europe/London
|
|
# FiveM license key from https://keymaster.fivem.net
|
|
- LICENSE_KEY=${FIVEM_LICENSE_KEY}
|
|
# Database (shared with existing game server)
|
|
- DB_HOST=play.southwest-roleplay.dev
|
|
- DB_PORT=3306
|
|
- DB_USER=imperium
|
|
- DB_PASS=hLTZaLoTKuP7xRNooj8AioAQ6GGojhxq
|
|
- DB_NAME=game
|
|
# Redis (on the shared Docker network)
|
|
- REDIS_HOST=swrp-redis
|
|
- REDIS_PORT=6379
|
|
# API keys
|
|
- SWRP_API_SERVER=${SWRP_API_SERVER:-https://api.southwest-roleplay.dev/game}
|
|
- SWRP_API_SERVER_KEY=${SWRP_API_SERVER_KEY}
|
|
- SWRP_UCP_URL=${SWRP_UCP_URL:-https://api.southwest-roleplay.dev/game}
|
|
- SWRP_WIKI_URL=${SWRP_WIKI_URL:-https://wiki.southwest-roleplay.com}
|
|
- INTERNAL_API_KEY=${INTERNAL_API_KEY}
|
|
restart: unless-stopped
|
|
networks:
|
|
- game-server_default
|
|
|
|
networks:
|
|
game-server_default:
|
|
external: true
|