diff --git a/.gitignore b/.gitignore index 86b3d92..0a3eb8b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,9 @@ /**/* # include these folders -# !/example/ +!/forgejo/ +!/minecraft/ +!/synapse/ # include compose.yaml files !**/compose.yaml diff --git a/forgejo/compose.yaml b/forgejo/compose.yaml new file mode 100644 index 0000000..b697af0 --- /dev/null +++ b/forgejo/compose.yaml @@ -0,0 +1,26 @@ +version: "3" + +services: + db: + image: docker.io/postgres:latest + volumes: + - ./data/db:/var/lib/postgresql/data + environment: + - POSTGRES_DB=forgejo + - POSTGRES_USER=forgejouser + - POSTGRES_PASSWORD=NOTSECUREPASSWORD + restart: on-failure + forgejo: + image: codeberg.org/forgejo/forgejo:1.19 + ports: + - "2222:22" + - "127.0.0.1:3000:3000" + volumes: + - ./data/forgejo:/data + environment: + - GITEA__database__DB_TYPE=postgres + - GITEA__database__HOST=db:5432 + - GITEA__database__NAME=forgejo + - GITEA__database__USER=forgejouser + - GITEA__database__PASSWD=NOTSECUREPASSWORD + restart: on-failure diff --git a/minecraft/compose.yaml b/minecraft/compose.yaml new file mode 100644 index 0000000..888020a --- /dev/null +++ b/minecraft/compose.yaml @@ -0,0 +1,40 @@ +version: "3" + +services: + minecraft: + image: docker.io/itzg/minecraft-server:java17 + ports: + # DO NOT EXPOSE RCON!!! = 25575 + # IPV4 + - 19132:19132/udp + # IPV6 + - 19133:19133/udp + # JAVA + - 25565:25565 + memory: "4000m" + restart: on-failure + environment: + USE_AIKAR_FLAGS: "true" + MEMORY: "" + JVM_XX_OPTS: "-XX:MaxRAMPercentage=75" + TYPE: "CUSTOM" + CUSTOM_SERVER: "/data/paper.jar" + # do everything over the server.properties + OVERRIDE_SERVER_PROPERTIES: "false" + # just skip creating them anyways + SKIP_SERVER_PROPERTIES: "true" + volumes: + - ./data:/data + backup: + image: docker.io/itzg/mc-backup + environment: + BACKUP_INTERVAL: "24h" + RCON_HOST: "minecraft" + # Should be only exposed on localhost, therefore shouldn't be that secure + RCON_PASSWORD: "OuHtU5ecRSbdCz1EddKBqqAMwFbNLIsLQ2EBOQlaYgN0bhG0QYC33kqwmvyT9f7eAp2ohZWmQx36hkLy4uH9lw8g6WFD3yzvzY6P" + PRUNE_BACKUPS_DAYS: "2" + depends_on: + - minecraft + volumes: + - ./data:/data:ro + - ./backups:/backups diff --git a/synapse/compose.yaml b/synapse/compose.yaml new file mode 100644 index 0000000..668e529 --- /dev/null +++ b/synapse/compose.yaml @@ -0,0 +1,22 @@ +version: "3" + +services: + postgres: + image: postgres + restart: always + volumes: + - $HOME/compose/synapse/data/postgresql:/var/lib/postgresql/data + environment: + - POSTGRES_PASSWORD=eL}wDzA$!6V&hdE~G + - POSTGRES_USER=synapse + - POSTGRES_INITDB_ARGS=--lc-collate=C --lc-ctype=C --encoding=UTF-8 --locale=en_US.UTF-8 + + synapse: + image: docker.io/matrixdotorg/synapse:latest + # 8448 is for federation and should be exposed on host (reverse proxy) + # 3478 is for TURN (voip calls) + ports: + - 127.0.0.1:8008:8008 + volumes: + - $HOME/compose/synapse/data:/data +