Browse Source

add compose from server

master
gsd 2 years ago
parent
commit
f16f39f420
  1. 26
      docker-compose.yaml

26
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"
Loading…
Cancel
Save