mirror of
https://github.com/factoriotools/factorio-docker.git
synced 2025-06-26 20:18:09 +02:00
Add rcon client (#550)
* Add rcon client to container * Explain rcon command * Remove test container name * Apply suggestions Co-authored-by: Florian Kinder <florian.kinder@fankserver.com> * Add example docker-compose file * Clarify return code * Switch to pre-update * Update docker-compose.yml Co-authored-by: Florian Kinder <florian.kinder@fankserver.com> * Allow build support for build (/* is only possible in buildx) * Added version information in README.md --------- Co-authored-by: Florian Kinder <florian.kinder@fankserver.com>
This commit is contained in:
37
docker-compose.yml
Normal file
37
docker-compose.yml
Normal file
@ -0,0 +1,37 @@
|
||||
version: "2"
|
||||
services:
|
||||
factorio:
|
||||
container_name: factorio
|
||||
image: factoriotools/factorio:stable
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "34197:34197/udp"
|
||||
- "27015:27015/tcp"
|
||||
volumes:
|
||||
- ./data:/factorio
|
||||
environment:
|
||||
- UPDATE_MODS_ON_START=true
|
||||
|
||||
# Uncomment to enable autoupdate via watchtower
|
||||
#labels:
|
||||
# # Labels to allow watchtower autoupdate only if no players are online
|
||||
# - com.centurylinklabs.watchtower.enable=true
|
||||
# - com.centurylinklabs.watchtower.scope=factorio
|
||||
# - com.centurylinklabs.watchtower.lifecycle.pre-update="/players-online.sh"
|
||||
|
||||
# Uncomment the following files to use watchtower for updating the factorio container
|
||||
# Full documentation of watchtower: https://github.com/containrrr/watchtower
|
||||
#watchtower:
|
||||
# container_name: watchtower_factorio
|
||||
# image: containrrr/watchtower
|
||||
# restart: unless-stopped
|
||||
# volumes:
|
||||
# - /var/run/docker.sock:/var/run/docker.sock
|
||||
# environment:
|
||||
# # Only update containers which have the option 'watchtower.enable=true' set
|
||||
# - WATCHTOWER_TIMEOUT=30s
|
||||
# - WATCHTOWER_LABEL_ENABLE=true
|
||||
# - WATCHTOWER_POLL_INTERVAL=3600
|
||||
# - WATCHTOWER_LIFECYCLE_HOOKS=true
|
||||
# labels:
|
||||
# - com.centurylinklabs.watchtower.scope=factorio
|
Reference in New Issue
Block a user