Kafkatorio/modules/infra-factorio-server/src/docker-compose.yml
Adam 4bc46f9753 progress towards multi-server handling
- bump some versions
- validate Factorio server ID & token
-
2022-08-28 19:37:49 +02:00

42 lines
967 B
YAML

version: "3.9"
services:
factorio-server:
image: factoriotools/factorio:${FACTORIO_VERSION}
container_name: "factorio-server"
restart: "no"
networks:
- "kafkatorio-nw"
- "traefik-nw"
labels:
- "traefik.enable=true"
ports:
- "34197:34197/udp" # factorio
- "27015:27015/tcp" # rcon
volumes:
- "./factorio-server:/factorio"
logging:
driver: syslog
options:
syslog-address: "tcp://host.docker.internal:12034" # pc
#syslog-address: "tcp://localhost:12034" # nuc
syslog-format: "rfc5424"
tag: ${KAFKATORIO_TOKEN}
# environment:
# RCON_PORT: 27715
# environment:
# - PUID=1000
# - PGID=1000
# - UPDATE_MODS_ON_START=true
# - USERNAME=FactorioUsername
# - TOKEN=FactorioToken
networks:
kafkatorio-nw:
name: "kafkatorio-nw"
external: true
traefik-nw:
name: "traefik-nw"
external: true