From 80c58d889a5de2bcb13855d65cec3ecdf40d565f Mon Sep 17 00:00:00 2001 From: L4RM4ND <21357789+l4rm4nd@users.noreply.github.com> Date: Sat, 9 Mar 2024 03:42:25 +0100 Subject: [PATCH] add posio --- README.md | 2 +- examples/posio/README.md | 4 ++++ examples/posio/docker-compose.yml | 29 +++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 examples/posio/README.md create mode 100644 examples/posio/docker-compose.yml diff --git a/README.md b/README.md index 93f1ee4..94796a5 100644 --- a/README.md +++ b/README.md @@ -418,7 +418,7 @@ A request bin service allows one to collect and inspect HTTP requests. It may be Multiplayer game servers, browser games and utilities for managing game servers. - [cs2-dedicated-server](examples/cs2-dedicated-server) - CS2 Dedicated Server Docker Image with an RCON web-based control panel. - +- [posio](examples/posio) - A multiplayer geography game using Websockets. ### Miscellaneous diff --git a/examples/posio/README.md b/examples/posio/README.md new file mode 100644 index 0000000..ed6a666 --- /dev/null +++ b/examples/posio/README.md @@ -0,0 +1,4 @@ +# References + +- https://github.com/abrenaut/posio (original) +- https://github.com/l4rm4nd/posio (fork with docker image) diff --git a/examples/posio/docker-compose.yml b/examples/posio/docker-compose.yml new file mode 100644 index 0000000..6c5a13c --- /dev/null +++ b/examples/posio/docker-compose.yml @@ -0,0 +1,29 @@ +version: '3.3' + +services: + posio: + image: l4rm4nd/posio:latest + container_name: posio + restart: unless-stopped + ports: + - 5000:5000/tcp + expose: + - 5000/tcp + volumes: + - ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/posio/data:/posio + environment: + - POSIO_SETTINGS=/app/posio/config.py + - FLASK_APP=/app/posio/game_master.py + #networks: + # - proxy + #labels: + # - traefik.enable=true + # - traefik.docker.network=proxy + # - traefik.http.routers.posio.rule=Host(`posio.example.com`) + # - traefik.http.services.posio.loadbalancer.server.port=5000 + # # Optional part for traefik middlewares + # - traefik.http.routers.posio.middlewares=local-ipwhitelist@file + +#networks: +# proxy: +# external: true