-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (69 loc) · 2.29 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (69 loc) · 2.29 KB
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
name: rustrconservermanager
services:
app:
image: ghcr.io/xenne93/rustrconservermanager:${IMAGE_TAG:-latest}
pull_policy: always
# To build from source instead of pulling the published image, comment out
# the "image"/"pull_policy" lines above and uncomment the block below.
# build:
# context: .
# dockerfile: Dockerfile
restart: unless-stopped
depends_on:
mariadb:
condition: service_healthy
env_file:
- .env
environment:
- LC_ALL=en_US.UTF-8
- LANG=en_US.UTF-8
- DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://+:5000
- ASPNETCORE_PATHBASE=${PATHBASE:-}
- ConnectionStrings__DefaultConnection=Server=mariadb;Port=3306;Database=${DB_NAME:-rustrconservermanager};User=${DB_USER:-rustrconservermanager};Password=${DB_PASSWORD};
- Jwt__Key=${JWT_KEY}
- Jwt__Issuer=${JWT_ISSUER:-rustrconservermanager}
- Jwt__Audience=${JWT_AUDIENCE:-rustrconservermanager}
- RconEncryption__Key=${RCON_ENCRYPTION_KEY}
- Smtp__Host=${SMTP_HOST:-}
- Smtp__Port=${SMTP_PORT:-587}
- Smtp__User=${SMTP_USER:-}
- Smtp__Password=${SMTP_PASSWORD:-}
- Smtp__From=${SMTP_FROM:-}
- SteamApi__ApiKey=${STEAM_API_KEY:-}
- ProxyCheck__ApiKey=${PROXYCHECK_API_KEY:-}
- ProxyCheck__HmacKey=${PROXYCHECK_HMAC_KEY:-}
- AUTO_UPDATE=${AUTO_UPDATE:-true}
- SKIP_AUTO_UPDATE=${SKIP_AUTO_UPDATE:-false}
ports:
- "${APP_PORT:-5000}:5000"
volumes:
- app_data:/app/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
mariadb:
image: mariadb:11.8.8
restart: unless-stopped
environment:
- MARIADB_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
- MARIADB_DATABASE=${DB_NAME:-rustrconservermanager}
- MARIADB_USER=${DB_USER:-rustrconservermanager}
- MARIADB_PASSWORD=${DB_PASSWORD}
volumes:
- db_data:/var/lib/mysql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 10
start_period: 30s
volumes:
app_data:
driver: local
db_data:
driver: local