forked from space-wizards/SS14.MapServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (48 loc) · 1.25 KB
/
docker-compose.yml
File metadata and controls
50 lines (48 loc) · 1.25 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
services:
map_database:
image: postgres:latest
container_name: map_database
restart: unless-stopped
environment:
- POSTGRES_PASSWORD=postgres
volumes:
- ./data:/var/lib/postgresql
healthcheck:
test: [ "CMD-SHELL", "pg_isready" ]
interval: 30s
timeout: 60s
retries: 5
start_period: 15s
ss14mapserver:
build:
context: .
dockerfile: ./Dockerfile
container_name: ss14mapserver
restart: unless-stopped
environment:
- ASPNETCORE_ENVIRONMENT=Production
- DOTNET_ENVIRONMENT=Production
- ASPNETCORE_URLS=http://*:80
# .NET SDK optimization for building
- DOTNET_CLI_TELEMETRY_OPTOUT=1
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1
- DOTNET_CLI_HOME=/tmp
- Auth__ApiKey=${AuthApiKey}
- Github__AppWebhookSecret=${GitHubApiWebhookSecret}
depends_on:
map_database:
condition: service_healthy
volumes:
- ./SS14.MapServer/appsettings.yaml:/app/appsettings.yaml
- ./private-key.pem:/app/private-key.pem
- ./files:/app/data
- ./build:/app/build
ports:
- 5218:80
post_start:
- command: chown -R 20202:20202 /app
user: root
ulimits:
core:
hard: 0
soft: 0