48 lines
1.5 KiB
YAML
48 lines
1.5 KiB
YAML
# vim:ft=ansible:
|
|
- name: ensure docker network
|
|
docker_network: name=satisfactory
|
|
tags: [ satisfactory, docker, network ]
|
|
- name: docker deploy satisfactory
|
|
docker_container:
|
|
name: satisfactory
|
|
state: absent
|
|
image: wolveix/satisfactory-server:latest
|
|
restart_policy: unless-stopped
|
|
pull: yes
|
|
networks:
|
|
- name: satisfactory
|
|
aliases: [ "gameserver" ]
|
|
env:
|
|
MAXPLAYERS: "8"
|
|
# We have this turned on for modding's sake
|
|
#SKIPUPDATE: "true"
|
|
ports:
|
|
- '7777:7777/udp'
|
|
- '7777:7777/tcp'
|
|
volumes:
|
|
- /data/satisfactory/config:/config
|
|
tags: [ docker, satisfactory ]
|
|
- name: docker deploy satisfactory sftp
|
|
docker_container:
|
|
name: satisfactory-sftp
|
|
state: started
|
|
image: atmoz/sftp
|
|
restart_policy: unless-stopped
|
|
pull: yes
|
|
ulimits:
|
|
- 'nofile:262144:262144'
|
|
ports:
|
|
- '7776:22/tcp'
|
|
volumes:
|
|
- /data/satisfactory/config:/home/servermgr/game
|
|
command: 'servermgr:{{ server_password }}:1000'
|
|
vars:
|
|
server_password: !vault |
|
|
$ANSIBLE_VAULT;1.1;AES256
|
|
33336138656461646462323661363336623235333861663730373535656331623230313334353239
|
|
6535623833343237626161383833663435643262376133320a616634613764396661316332373339
|
|
33633662366666623931643635313162366339306539666632643437396637616632633432326631
|
|
3038333932623638390a386362653463306338326436396230633562313466336464663764643461
|
|
3134
|
|
tags: [ docker, satisfactory, sidecar, sftp ]
|