tshock terraria server
This commit is contained in:
parent
7a8ab30418
commit
e909ac7869
@ -1,7 +1,7 @@
|
|||||||
SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
|
SCRIPT_DIR=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
|
||||||
GLOB_DIR=$SCRIPT_DIR/..
|
GLOB_DIR=$SCRIPT_DIR/..
|
||||||
|
|
||||||
SERVICES=( traefik gitea wizz ftp notes recipes )
|
SERVICES=( traefik gitea wizz ftp notes recipes terraria )
|
||||||
|
|
||||||
for service in "${SERVICES[@]}"
|
for service in "${SERVICES[@]}"
|
||||||
do
|
do
|
||||||
|
@ -1,23 +1,26 @@
|
|||||||
version: '3'
|
version: '3.7'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
terraria:
|
terraria:
|
||||||
image: ghcr.io/beardedio/terraria:latest
|
image: ghcr.io/beardedio/terraria:tshock-5.1.3
|
||||||
container_name: terraria
|
container_name: terraria
|
||||||
ports:
|
ports:
|
||||||
- '7777:7777'
|
- '7777:7777'
|
||||||
|
- '7878:7878'
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
environment:
|
environment:
|
||||||
- world=BurgerFamily.wld
|
- world=BurgerFamily.wld
|
||||||
volumes:
|
volumes:
|
||||||
- ./config:/config
|
- ./config:/config
|
||||||
# tty: true
|
|
||||||
# stdin_open: true
|
|
||||||
labels:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.http.routers.terraria.rule=Host(`terraria.hugowillaume.com`)"
|
- "traefik.http.routers.terraria.rule=Host(`terraria.hugowillaume.com`)"
|
||||||
- "traefik.http.routers.terraria.entrypoints=terraria"
|
- "traefik.http.routers.terraria.entrypoints=terraria"
|
||||||
- "traefik.http.services.terraria.loadbalancer.server.port=7777"
|
- "traefik.http.services.terraria.loadbalancer.server.port=7777"
|
||||||
|
|
||||||
|
- "traefik.http.routers.terraria_api.rule=Host(`terraria.hugowillaume.com`)"
|
||||||
|
- "traefik.http.routers.terraria_api.entrypoints=terraria_api"
|
||||||
|
- "traefik.http.services.terraria_api.loadbalancer.server.port=7878"
|
||||||
networks:
|
networks:
|
||||||
- traefik_default
|
- traefik_default
|
||||||
|
|
||||||
|
@ -11,6 +11,9 @@
|
|||||||
[entryPoints.terraria]
|
[entryPoints.terraria]
|
||||||
address = ":7777"
|
address = ":7777"
|
||||||
|
|
||||||
|
[entryPoints.terraria_api]
|
||||||
|
address = ":7878"
|
||||||
|
|
||||||
#[providers.file]
|
#[providers.file]
|
||||||
# directory = "/etc/traefik/config"
|
# directory = "/etc/traefik/config"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user