Skip to content

Commit

Permalink
update example dockers
Browse files Browse the repository at this point in the history
  • Loading branch information
LoV432 committed Jan 18, 2024
1 parent 279d881 commit 25312b8
Show file tree
Hide file tree
Showing 3 changed files with 93 additions and 10 deletions.
73 changes: 73 additions & 0 deletions examples/docker-compose-with-cs2-db.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
version: '2.1'
services:
cs2:
container_name: cs2
environment:
# Check out https://hub.docker.com/r/joedwards32/cs2 for more information
- 'CS2_SERVERNAME='
- 'CS2_PW='
- 'CS2_GAMEALIAS=casual'
- 'CS2_BOT_QUOTA=0'
- 'CS2_STARTMAP=de_mirage'
- 'CS2_RCONPW=veryweakrconpassword'
- 'CS2_LAN=0'
networks:
cs2:
ipv4_address: 10.0.50.2
ports:
- '27015:27015/udp'
# - "27015:27015/tcp" # This is not required for dashboard to work correctly
volumes:
- ./cs2:/home/steam/cs2-dedicated/
- ./steam:/home/steam/Steam
- ./steamcmd:/home/steam/steamcmd
image: joedwards32/cs2
restart: unless-stopped

cs2dashboard:
image: lov432/cs2-dashboard:latest
container_name: cs2dashboard
networks:
cs2:
ipv4_address: 10.0.50.3
environment:
- SERVER_IP=10.0.50.2
- SERVER_PORT=27015
- RCON_PORT=27015
- RCON_PASSWORD=veryweakrconpassword
- MAXMIND_LICENSE_KEY= # Maxmind License Key (optional for geolocation)
- ADMIN_PLUGIN_INSTALLED=false # Change this to true if you have CS2-SimpleAdmin plugin installed: https://github.com/daffyyyy/CS2-SimpleAdmin
# MySQL used in CS2-SimpleAdmin:
- SQL_HOST=10.0.50.4
- SQL_PORT=3306
- SQL_USER=cs2
- SQL_DB=cs2
- SQL_PASSWORD=veryweakdbpassword
ports:
- 3000:3000
restart: unless-stopped

db:
image: mysql
container_name: cs2-db
volumes:
- ./db:/var/lib/mysql
environment:
- 'MYSQL_ROOT_PASSWORD=veryweakdbrootpassword'
- 'MYSQL_DATABASE=cs2'
- 'MYSQL_USER=cs2'
- 'MYSQL_PASSWORD=veryweakdbpassword'
# ports:
# - 3306:3306 # This is not required for dashboard to work correctly
networks:
cs2:
ipv4_address: 10.0.50.4
restart: always

networks:
cs2:
name: cs2
driver: bridge
ipam:
config:
- subnet: 10.0.50.0/24
20 changes: 12 additions & 8 deletions examples/docker-compose-with-cs2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ services:
cs2:
ipv4_address: 10.0.50.2
ports:
- "27015:27015/udp"
- '27015:27015/udp'
# - "27015:27015/tcp" # This is not required for dashboard to work correctly
volumes:
- ./cs2:/home/steam/cs2-dedicated/
- ./steam:/home/steam/Steam
- ./steamcmd:/home/steam/steamcmd
image: joedwards32/cs2
stdin_open: true
tty: true
restart: unless-stopped

cs2dashboard:
Expand All @@ -33,12 +31,18 @@ services:
cs2:
ipv4_address: 10.0.50.3
environment:
- SERVER_IP=10.0.50.2 # CS2 Server IP
- SERVER_PORT=27015 # CS2 Server Port
- RCON_PORT=27015 # RCON Port
- RCON_PASSWORD=veryweakrconpassword # RCON Password
- SERVER_IP=10.0.50.2
- SERVER_PORT=27015
- RCON_PORT=27015
- RCON_PASSWORD=veryweakrconpassword
- MAXMIND_LICENSE_KEY= # Maxmind License Key (optional for geolocation)
- ADMIN_PLUGIN_INSTALLED=false # Change this to true if you have this plugin installed: https://github.com/daffyyyy/CS2-SimpleAdmin
- ADMIN_PLUGIN_INSTALLED=false # Change this to true if you have CS2-SimpleAdmin plugin installed: https://github.com/daffyyyy/CS2-SimpleAdmin
# MySQL used in CS2-SimpleAdmin:
- SQL_HOST=
- SQL_PORT=
- SQL_USER=
- SQL_DB=
- SQL_PASSWORD=
ports:
- 3000:3000
restart: unless-stopped
Expand Down
10 changes: 8 additions & 2 deletions examples/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ services:
- RCON_PORT= # RCON Port
- RCON_PASSWORD= # RCON Password
- MAXMIND_LICENSE_KEY= # Maxmind License Key (optional for geolocation)
- ADMIN_PLUGIN_INSTALLED=false # Change this to true if you have this plugin installed: https://github.com/daffyyyy/CS2-SimpleAdmin
- ADMIN_PLUGIN_INSTALLED=false # Change this to true if you have CS2-SimpleAdmin plugin installed: https://github.com/daffyyyy/CS2-SimpleAdmin
# MySQL used in CS2-SimpleAdmin:
- SQL_HOST=
- SQL_PORT=
- SQL_USER=
- SQL_DB=
- SQL_PASSWORD=
ports:
- 3000:3000
restart: unless-stopped
restart: unless-stopped

0 comments on commit 25312b8

Please sign in to comment.