forked from space-wizards/SS14.MapServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
26 lines (26 loc) · 868 Bytes
/
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
version: '3.3'
services:
#The ss14 map server container doesn't support https on its own. Please use a reverse proxy
ss14mapserver:
build:
context: ./
dockerfile: SS14.MapServer/Dockerfile
volumes:
- ./appsettings.yaml:/app/appsettings.yaml
- ./private-key.pem:/app/private-key.pem
- ./files:/app/data
- ./build:/app/build
ports:
- 5218:80 #Replace 5218 with the port you need
# Disables core dumps to prevent maprenderer crashes from filling up your hard drive with over a gigabyte per dump
ulimits:
core:
hard: 0
soft: 0
map_database:
image: postgres:latest
environment:
- POSTGRES_PASSWORD=postgres #Replace postgres with a randomly generated password
volumes:
- ./data:/var/lib/postgresql/data
- ./init.sql:/docker-entrypoint-initdb.d/init.sql