debyltech updates, satisfactory

This commit is contained in:
Bastian de Byl
2023-04-30 00:31:10 -04:00
parent 34c7199986
commit 7fba5179c4
22 changed files with 212 additions and 23 deletions

View File

@@ -71,6 +71,7 @@
- "{{ photos_server_name }}.conf"
- "{{ pi_server_name }}.conf"
- "{{ video_server_name }}.conf"
- "{{ api_debyltech_server_name }}.conf"
notify:
- restorecon podman
- restart nginx
@@ -95,6 +96,7 @@
- "{{ photos_server_name }}.conf"
- "{{ pi_server_name }}.conf"
- "{{ video_server_name }}.conf"
- "{{ api_debyltech_server_name }}.conf"
notify:
- restorecon podman
- restart nginx

View File

@@ -39,6 +39,7 @@
- "{{ cloud_server_name }}.https.conf"
- "{{ parts_server_name }}.https.conf"
- "{{ photos_server_name }}.https.conf"
- "{{ api_debyltech_server_name }}.https.conf"
notify:
- restorecon podman
- restart nginx
@@ -58,6 +59,7 @@
- "{{ cloud_server_name }}.https.conf"
- "{{ parts_server_name }}.https.conf"
- "{{ photos_server_name }}.https.conf"
- "{{ api_debyltech_server_name }}.https.conf"
notify:
- restorecon podman
- restart nginx

View File

@@ -8,7 +8,7 @@
image: docker.io/bdebyl/awsddns:1.0.34
recreate: false
restart: true
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
env:
AWS_ZONE_TTL: 60
@@ -34,7 +34,7 @@
image: docker.io/bdebyl/awsddns:1.0.34
recreate: false
restart: true
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
env:
AWS_ZONE_TTL: 60

View File

@@ -34,7 +34,7 @@
image: docker.io/mysql:5.7.21
recreate: false
restart: false
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
network:
- shared
@@ -62,7 +62,7 @@
image: docker.io/solidnerd/bookstack:22.11.1
recreate: true
restart: false
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
network:
- shared

View File

@@ -52,7 +52,7 @@
image: docker.io/mariadb:10.5
recreate: false
restart: false
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
network:
- shared
@@ -79,7 +79,7 @@
image: docker.io/nextcloud:24.0.5-apache
recreate: false
restart: false
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
network:
- shared

View File

@@ -0,0 +1,51 @@
---
- name: create required debyltech volumes
become: true
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: "{{ podman_subuid.stdout }}"
group: "{{ podman_subuid.stdout }}"
mode: 0755
notify: restorecon podman
loop:
- "{{ debyltech_path }}/api"
- "{{ debyltech_path }}/api/config"
tags: debyltech
- name: template api.debyltech.com files
become: true
ansible.builtin.template:
src: "debyltech/{{ item }}.j2"
dest: "{{ debyltech_path }}/api/config/{{ item }}"
owner: "{{ podman_user }}"
group: "{{ podman_user }}"
mode: 0644
loop:
- "config.json"
tags: debyltech
- name: create api.debyltech.com container
become: true
become_user: "{{ podman_user }}"
containers.podman.podman_container:
name: apidebyltech
image: docker.io/debyltech/go-snipcart-webhook:0.1.34
command: --config /conf/config.json --release
recreate: true
restart: true
restart_policy: on-failure:3
log_driver: journald
network:
- shared
volumes:
- "{{ debyltech_path }}/api/config:/conf"
ports:
- "8040:8080"
tags: debyltech
- name: create systemd startup job for api.debyltech.com
include_tasks: systemd-generate.yml
vars:
container_name: apidebyltech
tags: debyltech

View File

@@ -22,9 +22,9 @@
containers.podman.podman_container:
name: drone
image: docker.io/drone/drone:2.16.0
recreate: false
recreate: true
restart: true
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
network:
- shared
@@ -54,10 +54,10 @@
become_user: "{{ podman_user }}"
containers.podman.podman_container:
name: drone-runner
image: docker.io/drone/drone-runner-docker:1.8.1
image: docker.io/drone/drone-runner-docker:1.8.3
recreate: false
restart: true
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
network:
- shared

View File

@@ -51,7 +51,7 @@
image: docker.io/mongo:4.2
recreate: false
restart: false
restart_policy: on-failure
restart_policy: on-failure:3
network:
- shared
volumes:
@@ -72,7 +72,7 @@
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
recreate: false
restart: false
restart_policy: on-failure
restart_policy: on-failure:3
network:
- shared
volumes:
@@ -99,7 +99,7 @@
image: docker.io/graylog/graylog:4.3.11
recreate: true
restart: true
restart_policy: on-failure
restart_policy: on-failure:3
sysctl:
net.ipv6.conf.all.disable_ipv6: 1
net.ipv6.conf.default.disable_ipv6: 1

View File

@@ -39,7 +39,7 @@
image: ghcr.io/home-assistant/home-assistant:stable
recreate: false
restart: true
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
cap_add:
- CAP_NET_RAW

View File

@@ -24,7 +24,7 @@
image: docker.io/mariadb:10.0
recreate: false
restart: false
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
network:
- shared
@@ -51,7 +51,7 @@
image: docker.io/bdebyl/partkeepr:0.1.10
recreate: false
restart: false
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
network:
- shared

View File

@@ -35,7 +35,7 @@
image: docker.io/mariadb:10.8
recreate: false
restart: false
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
network:
- shared
@@ -63,7 +63,7 @@
image: docker.io/photoprism/photoprism:221118-jammy
recreate: false
restart: false
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
network:
- shared

View File

@@ -25,7 +25,7 @@
image: docker.io/pihole/pihole:2022.04.3
recreate: false
restart: true
restart_policy: on-failure
restart_policy: on-failure:3
log_driver: journald
cap_add:
- CAP_NET_BIND_SERVICE

View File

@@ -0,0 +1,46 @@
---
- name: create satisfactory host directory volumes
become: true
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: "{{ podman_user }}"
group: "{{ podman_user }}"
mode: 0755
notify: restorecon podman
loop:
- "{{ satisfactory_path }}/config"
tags: satisfactory
- name: flush handlers
ansible.builtin.meta: flush_handlers
tags: satisfactory
- name: create satisfactory server container
become: true
become_user: "{{ podman_user }}"
containers.podman.podman_container:
name: satisfactory
image: docker.io/wolveix/satisfactory-server:latest
recreate: true
restart: true
restart_policy: on-failure:3
log_driver: journald
memory: 16g
memory_reservation: 12g
volumes:
- "{{ satisfactory_path }}/config:/config"
env:
MAXPLAYERS: 4
STEAMBETA: "false"
ports:
- "7777:7777/udp"
- "15000:15000/udp"
- "15777:15777/udp"
tags: satisfactory
- name: create systemd startup job for satisfactory
include_tasks: systemd-generate.yml
vars:
container_name: satisfactory
tags: satisfactory

View File

@@ -18,6 +18,10 @@
- 53/udp
- 6875/tcp
- 80/tcp
# satisfactory
- 7777/udp
- 15000/udp
- 15777/udp
notify: restart firewalld
tags: firewall

View File

@@ -11,4 +11,6 @@
- import_tasks: container-bookstack.yml
- import_tasks: container-photos.yml
- import_tasks: container-cloud.yml
- import_tasks: container-debyltech.yml
- import_tasks: container-nginx.yml
- import_tasks: container-satisfactory.yml