Advertisement
nidaren

docker-compose - version agnostic image

Jun 16th, 2022 (edited)
1,277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.51 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. services:
  4.   eco-server-environment:
  5.     container_name: eco-server-env
  6.     image: nidaren/eco-server:environment
  7.     restart: unless-stopped
  8.     # comment out both stdin_opn and tty if you don't need these functionalities.
  9.     # both work in detached mode (-d) when attaching to the container
  10.     stdin_open: true # interactive: allows to input keyboard commands to the container in (-d) detached mode.
  11.     tty: true        # tty: pseudo terminal, needed if using stdin_open, adds colors as well.
  12.     volumes:
  13.    # Exposes root of the Server
  14.     # source - host, target - container
  15.     # you can freely change source (host) but don't change target!
  16.       - type: bind
  17.         source: ./eco-server    # source - location on the host
  18.         target: /home/container/server # target - DON'T modify, location inside container
  19.     environment:
  20.       ECO_TOKEN: YourEcoToken # Provide your Eco Token. Eco 11 servers require auth token at start.
  21.       VERSION_BRANCH: public # Branch names changed in Eco 11! (playtest, staging) version of the server to download
  22.       UPDATE_SERVER: true # Checks for server updates on the selected branch before running the Server
  23.       STEAM_FEEDBACK: false # steamcmd output in console, when false it saves it to Logs/latestSteam.log
  24.     ports:
  25.      # Ports to be assigned in format host:container
  26.       - "3000:3000/udp" # GameServerPort from Network.eco
  27.       - "3001:3001/tcp" # WebServerPort from Network.eco
  28.       - "3002:3002/tcp" # RconServerPort from Network.eco
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement