You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.1 KiB
69 lines
2.1 KiB
version: "3.7"
|
|
|
|
services:
|
|
|
|
#
|
|
# Valheim
|
|
#
|
|
valheim:
|
|
image: lloesche/valheim-server
|
|
container_name: games_valheim
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=${TZ}
|
|
- SERVER_NAME=${VALHEIM_SERVER_NAME}
|
|
- SERVER_PORT=${VALHEIM_SERVER_PORT}
|
|
- WORLD_NAME=${VALHEIM_WORLD_NAME}
|
|
- SERVER_PASS=${VALHEIM_SERVER_PASS}
|
|
- SERVER_PUBLIC=${VALHEIM_SERVER_PUBLIC}
|
|
ports:
|
|
- "2456-2458:2456-2458/udp"
|
|
volumes:
|
|
- "${DATA_DIR}/valheim:/config"
|
|
|
|
#
|
|
# Factorio
|
|
#
|
|
factorio:
|
|
image: factoriotools/factorio:stable
|
|
container_name: games_factorio
|
|
restart: unless-stopped
|
|
environment:
|
|
- TZ=${TZ}
|
|
- UPDATE_MODS_ON_START=${FACTORIO_UPDATE_MODS_ON_START} # [true|false], requires FACTORIO_TOKEN to be set
|
|
- USERNAME=${FACTORIO_USERNAME}
|
|
- TOKEN=${FACTORIO_TOKEN}
|
|
- GAME_PASSWORD=${FACTORIO_GAME_PASSWORD}
|
|
- ADMIN_USERNAME=${FACTORIO_USERNAME}
|
|
ports:
|
|
- "34197:34197/udp"
|
|
- "27015:27015/tcp"
|
|
volumes:
|
|
- "${DATA_DIR}/factorio:/factorio"
|
|
- "./config/factorio/server-settings.json:/server-settings.json:ro"
|
|
- "./config/factorio/server-adminlist.json:/server-adminlist.json:ro"
|
|
- "./config/factorio/map-settings.json:/factorio/config/map-settings.json"
|
|
- "./config/factorio/map-gen-settings.json:/factorio/config/map-gen-settings.json"
|
|
- "./config/factorio/mod-list.json:/factorio/mods/mod-list.json"
|
|
entrypoint: /bin/sh -c "mkdir -p /factorio/config && envsubst < /server-settings.json > /factorio/config/server-settings.json && envsubst < /server-adminlist.json > /factorio/config/server-adminlist.json && exec /docker-entrypoint.sh"
|
|
|
|
#
|
|
# Minecraft
|
|
#
|
|
minecraft:
|
|
image: itzg/minecraft-server:latest
|
|
container_name: games_minecraft
|
|
restart: unless-stopped
|
|
env_file:
|
|
- ./config/minecraft/minecraft.env
|
|
environment:
|
|
- TZ=${TZ}
|
|
- EULA=TRUE
|
|
- RCON_PASSWORD=${MINECRAFT_RCON_PASSWORD}
|
|
ports:
|
|
- "25565:25565"
|
|
- "25575:25575"
|
|
volumes:
|
|
- "${DATA_DIR}/minecraft:/data"
|
|
tty: true
|
|
stdin_open: true
|
|
|