Sign inSign up

jiangjiali/game

By jiangjiali

•Updated over 1 year ago

https://github.com/jiangjiali/docker-game

Image
0

85

jiangjiali/game repository overview

docker-compose.yml中配置

  game:
    image: jiangjiali/game:9.0.0
    restart: always
    container_name: game
    ulimits:
      nproc: 65535
      nofile:
        soft: 65535
        hard: 65535
    command: 
      - sh
      - -c
      - |
        dotnet Server.App.dll --m Release --pid=1 --c ../Config/Binary
    ports:
      - "20000:20000/udp"
      - "20001:20001/udp"
    volumes:
      - ./docker/game/App:/game/App:r 程序目录
      - ./docker/game/Logs:/game/Logs:rw 日志
      - ./docker/game/Config:/game/Config:r 二进制配置文件
    networks:
      hx_net:
        ipv4_address: 11.11.11.17
    depends_on:
      - mongo

nginx中stream.d配置game.conf

server {
  listen 20000 udp;
  proxy_connect_timeout 10s;
  proxy_timeout 30s;
  proxy_read_timeout 20s;
  proxy_send_timeout 30s;
  proxy_pass 11.11.11.17:20000;
}

server {
  listen 20001 udp;
  proxy_connect_timeout 10s;
  proxy_timeout 30s;
  proxy_read_timeout 20s;
  proxy_send_timeout 30s;
  proxy_pass 11.11.11.17:20001;
}

Tag summary

Content type

Image

Digest

sha256:37bcd34d4…

Size

75.7 MB

Last updated

over 1 year ago

docker pull jiangjiali/game:9.0.0