From 9014afede4d4ee5313ffde5aa39a16435262e101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20=C5=BBbikowski?= Date: Sun, 23 Nov 2025 21:26:11 +0100 Subject: [PATCH] Compose file --- compose.yaml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 compose.yaml diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..32569fc --- /dev/null +++ b/compose.yaml @@ -0,0 +1,55 @@ +services: + wings: + image: ghcr.io/pterodactyl/wings + env_file: + - .env + restart: unless-stopped + networks: + - caddy + - wings0 + ports: + - "2022:2022" + tty: true + environment: + TZ: "Europe/Warsaw" + WINGS_UID: 988 + WINGS_GID: 988 + WINGS_USERNAME: pterodactyl + volumes: + - "/var/run/docker.sock:/var/run/docker.sock" + - "${TMP_DIR}:${TMP_DIR}" + - "${DATA_DIR}/etc/:/etc/pterodactyl/" + - "${DATA_DIR}/logs:/var/log/pterodactyl/" + - "${DATA_DIR}/lib:/var/lib/pterodactyl/" + - "${VOLUMES_DIR}:${VOLUMES_DIR}" + labels: + caddy: "${DOMAIN}" + caddy.reverse_proxy: "{{upstreams 443}}" + caddy.tls: ${MAIL} + + caddy: + image: caddy:latest + restart: unless-stopped + networks: + - caddy + env_file: + - .env + ports: + - "80:80" + - "443:443" + volumes: + - ${CADDY_DIR}/data:/data + - ${CADDY_DIR}/config:/config + +networks: + wings0: + name: wings0 + driver: bridge + ipam: + config: + - subnet: "10.172.0.0/16" + driver_opts: + com.docker.network.bridge.name: wings0 + + caddy: + external: false \ No newline at end of file