From f16f39f4201258ef42777b69ebcfbe4c1beb9f7d Mon Sep 17 00:00:00 2001 From: gsd Date: Tue, 28 Feb 2023 20:14:19 +0300 Subject: [PATCH] add compose from server --- docker-compose.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..b5eb36d --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,26 @@ +services: + facti13_web_backend_v2: + build: . + container_name: backend + restart: always + extra_hosts: + - "tf2.pblr-nyk.pro:192.168.3.3" + volumes: + - $PWD/servers.json:/app/servers.json:ro + - $PWD/GeoLite2-Country.mmdb:/app/geoip.mmdb:ro + env_file: + - .env + environment: + - A2S_BACKEND_URL=http://localhost:8082 + ports: + - 26272:8080 + - 8081:8081 + command: "-Xmx2048m -Xms128m -verbose:gc -XX:+UseZGC -Dio.netty.allocator.useCacheForAllThreads=false -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8081 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -jar backend.jar" + depends_on: + - facti13_web_backend_v2_a2s_server + facti13_web_backend_v2_a2s_server: + build: ./ext/python-a2s-rcon-api + container_name: a2s_server + restart: always + extra_hosts: + - "tf2.pblr-nyk.pro:192.168.3.3" \ No newline at end of file