Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 1.8 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (45 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Normal deployment: pull the published image; no build arguments/checksums needed.
services:
factorio:
container_name: factorio
image: factoriotools/factorio:stable
restart: unless-stopped
stop_grace_period: 2m
ports:
- "34197:34197/udp"
# Optional remote RCON; local administration works with docker compose exec.
# - "127.0.0.1:27015:27015/tcp"
volumes:
- ./data:/factorio
environment:
# Enable only after providing mod-portal credentials (see README).
- UPDATE_MODS_ON_START=false
# Optional host ownership: use the numeric output of id -u / id -g.
# - PUID=1000
# - PGID=1000
# - DLC_SPACE_AGE=false
# Uncomment to skip updating specific mods
# - UPDATE_IGNORE=mod1,mod2,mod3
# 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 service to use watchtower for updating the factorio container
# Full documentation of watchtower: https://github.com/containrrr/watchtower
#watchtower:
# container_name: watchtower_factorio
# image: ghcr.io/nicholas-fedor/watchtower:latest
# 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=120s
# - WATCHTOWER_LABEL_ENABLE=true
# - WATCHTOWER_POLL_INTERVAL=3600
# - WATCHTOWER_LIFECYCLE_HOOKS=true
# - WATCHTOWER_SCOPE=factorio
# labels:
# - com.centurylinklabs.watchtower.scope=factorio