-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.33 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
version: "3.8"
services:
db:
image: postgres:14.1-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=edelstein
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
server:
build:
context: .
dockerfile: src/app/Edelstein.Application.Server/Dockerfile
restart: always
depends_on:
db:
condition: service_healthy
volumes:
- ./data:/app/data
- ./scripts:/app/scripts
- ./plugins:/app/plugins
ports:
- 8484:8484
- "7575-7577:7575-7577"
- 9000:9000
- 9100:9100
environment:
- HOST__LOGINSTAGES__0__HOST=${HOST:-127.0.0.1}
- HOST__GAMESTAGES__0__HOST=${HOST:-127.0.0.1}
- HOST__SHOPSTAGES__0__HOST=${HOST:-127.0.0.1}
- HOST__TRADESTAGES__0__HOST=${HOST:-127.0.0.1}
- HOST__MIGRATEDATABASEONINIT=true
- CONNECTIONSTRINGS__AUTH=host=db;username=postgres;password=password;database=edelstein
- CONNECTIONSTRINGS__SERVER=host=db;username=postgres;password=password;database=edelstein
- CONNECTIONSTRINGS__GAMEPLAY=host=db;username=postgres;password=password;database=edelstein
- CONNECTIONSTRINGS__SOCIAL=host=db;username=postgres;password=password;database=edelstein