-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
34 lines (34 loc) · 1015 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
27
28
29
30
31
32
33
34
version: "3.8"
services:
database:
image: "library/postgres:latest"
ports:
- "5432:5432"
environment:
- 'POSTGRES_USER=${DATABASE_USERNAME}'
- 'POSTGRES_PASSWORD=${DATABASE_PASSWORD}'
volumes:
- ./db:/var/lib/postgresql/data
command: ["postgres", "-c", "log_statement=all"]
restart: always
servermanager:
build:
context: .
dockerfile: ${DOCKERFILE}
ports:
- "8080:8080"
- "25565:25565"
- "25566:25566"
- "25567:25567"
environment:
- 'DATABASE_USERNAME=${DATABASE_USERNAME}'
- 'DATABASE_PASSWORD=${DATABASE_PASSWORD}'
- 'SECURITY_cookieSecretEncryptKey=${COOKIE_ENCRYPT_KEY}'
- 'SECURITY_cookieSecretSignKey=${COOKIE_SIGN_KEY}'
- 'SECURITY_clientId=${GOOGLE_CLIENT_ID}'
- 'SECURITY_clientSecret=${GOOGLE_CLIENT_SECRET}'
- 'LOCALRUNNER_DOMAIN=${LOCAL_RUNNER_DOMAIN}'
- 'HOST_HOSTNAME=${HOSTNAME}'
volumes:
- ./rundata:/minecraftservermanager
restart: always