nidaren

docker-compose - version agnostic image

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