HUB
Sign inSign up

axelterizaki/knockoutcity

By axelterizaki

•Updated almost 3 years ago

Dedicated server for the game Knockout City for Linux (using Wine)

Image
0

945

axelterizaki/knockoutcity repository overview

⁠Knockout City Server

This runs a Knockout City game server on Linux using Wine, Postgres and Redis.

For some reason the container needs to use the host network mode as there are connection issues in any other mode.

Use with a docker-compose file :

# docker-compose.yml
version: '3.8'
services:
  knockoutcity:
    image: axelterizaki/knockoutcity
    network_mode: host
    ports:
      - 23600:23600
    depends_on:
      - postgres
      - redis
    environment:
      - DBHOST=localhost
      - REDISHOST=localhost
      - DBPORT=5435
      - REDISPORT=6380
  postgres:
    image: postgres:alpine
    environment:
      POSTGRES_DB: knockoutcity
      POSTGRES_PASSWORD: knockoutcity
      POSTGRES_USER: knockoutcity
    ports:
      - 5435:5432
    restart: on-failure:3
    volumes:
      - /srv/games/knockoutcity/pgdata:/var/lib/postgresql
  redis:
    image: redis:latest
    command: redis-server
    ports:
      - 6380:6379
    volumes:
      - /srv/games/knockoutcity/redis/data:/var/lib/redis
      - /srv/games/knockoutcity/redis/redis.conf:/usr/local/etc/redis/redis.conf

Feel free to modify it to make use of volumes rather than direct mappings if you prefer that, for redis and postgres.

Tag summary

Content type

Image

Digest

sha256:3d6c26951…

Size

1.9 GB

Last updated

almost 3 years ago

docker pull axelterizaki/knockoutcity