forked from artem-panchenko/counter-strike-docker
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
86 lines (79 loc) · 1.6 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: '3.7'
volumes:
hlds-data: {}
mysql-data: {}
x-anchors:
- &logs
logging:
driver: json-file
options:
max-file: '5'
max-size: 20m
services:
hlds:
image: ${IMAGE_NAME}:${IMAGE_TAG}
environment:
GAME:
MAXPLAYERS:
START_MAP:
SERVER_NAME:
STEAM_ADMINS:
SERVER_PASSWORD:
RCON_PASSWORD:
HLSTATS_DAEMON_IP:
HLSTATS_DAEMON_PORT:
volumes:
- type: volume
source: hlds-data
target: /opt/hlds
ports:
- ${PORT}:27015/udp
restart: unless-stopped
stdin_open: true
tty: true
<<: *logs
hltv:
image: ${IMAGE_NAME}:${IMAGE_TAG}
environment:
HLTV: "true"
HLTV_SERVER:
HLTV_PORT:
SERVER_PASSWORD:
SPECTATOR_PASSWORD:
ports:
- ${HLTV_PORT}:${HLTV_PORT}/udp
restart: unless-stopped
stdin_open: true
tty: true
<<: *logs
mysql:
image: mysql:5.5.62
volumes:
- mysql-data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_USER: "hlds"
MYSQL_PASSWORD:
MYSQL_DATABASE: "hlds"
restart: unless-stopped
<<: *logs
stats:
image: ${IMAGE_NAME}:stats-${IMAGE_TAG}
environment:
DB_ADDR: "mysql"
DB_USER: "hlds"
DB_PASS: ${MYSQL_PASSWORD}
DB_NAME: "hlds"
restart: unless-stopped
ports:
- ${WWW_PORT}:80
<<: *logs
stats-daemon:
image: ${IMAGE_NAME}:stats-daemon-${IMAGE_TAG}
environment:
DB_ADDR: "mysql"
DB_USER: "hlds"
DB_PASS: ${MYSQL_PASSWORD}
DB_NAME: "hlds"
restart: unless-stopped
<<: *logs