new configurations
This commit is contained in:
parent
2a73bc632a
commit
b2dc32a6e9
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -3,7 +3,9 @@
|
|||
/**/*
|
||||
|
||||
# include these folders
|
||||
# !/example/
|
||||
!/forgejo/
|
||||
!/minecraft/
|
||||
!/synapse/
|
||||
|
||||
# include compose.yaml files
|
||||
!**/compose.yaml
|
||||
|
|
26
forgejo/compose.yaml
Normal file
26
forgejo/compose.yaml
Normal file
|
@ -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
|
40
minecraft/compose.yaml
Normal file
40
minecraft/compose.yaml
Normal file
|
@ -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
|
22
synapse/compose.yaml
Normal file
22
synapse/compose.yaml
Normal file
|
@ -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
|
||||
|
Loading…
Reference in a new issue