Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.8'
- services:
- eco-server-release:
- container_name: eco-server-release
- image: nidaren/eco-server:release
- restart: unless-stopped
- # comment out both stdin_opn and tty if you don't need these functionalities.
- # both work in detached mode (-d) when attaching to the container
- stdin_open: true # interactive: allows to input keyboard commands to the container in (-d) detached mode.
- tty: true # tty: pseudo terminal, needed if using stdin_open, adds colors as well.
- volumes:
- # Exposes Storage, Configs, Mods and Logs folders.
- - type: bind
- source: ./server/Storage # source - location on the host
- target: /home/container/Storage # target - location inside container
- - type: bind
- source: ./server/Configs
- target: /home/container/Configs
- - type: bind
- source: ./server/Mods
- target: /home/container/Mods
- - type: bind
- source: ./server/Logs
- target: /home/container/Logs
- ports:
- # Ports to be assigned in format host:container
- - "3000:3000/udp" # GameServerPort from Network.eco
- - "3001:3001/tcp" # WebServerPort from Network.eco
- - "3002:3002/tcp" # RconServerPort from Network.eco
Add Comment
Please, Sign In to add comment