-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 1.01 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
services:
app:
image: ghcr.io/arie/tf2_live_stats:latest
restart: always
pull_policy: always
depends_on:
db:
condition: service_healthy
restart: true
redis:
condition: service_started
ports:
- '127.0.0.1:${PUBLIC_PORT}:${PUBLIC_PORT}/tcp'
- '127.0.0.1:${WEBSOCKET_PORT}:${WEBSOCKET_PORT}/tcp'
- '${LOG_LISTENER_PORT}:${LOG_LISTENER_PORT}/udp'
env_file: .env
db:
image: mariadb:lts
restart: always
env_file: .env
volumes:
- db_data:/var/lib/mysql
environment:
- MARIADB_USER=${DB_USERNAME}
- MARIADB_PASSWORD=${DB_PASSWORD}
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_DATABASE=${DB_NAME}
healthcheck:
test: ["CMD-SHELL", 'mysqladmin ping']
interval: 5s
timeout: 2s
retries: 10
redis:
image: redis:7.2
restart: always
volumes:
- redis_data:/data
memcached:
image: memcached:latest
restart: always
volumes:
db_data:
redis_data: