feat(docker-compose.yaml): add docker-compose configuration for PostgreSQL database

refactor(src/DiIiS-NA/config.ini): update BindIP to use Docker service name for database connection
This commit is contained in:
Mateleo 2024-11-22 12:04:34 +01:00
parent 3cb03e8ffd
commit b19a196a05
2 changed files with 22 additions and 1 deletions

21
docker-compose.yaml Normal file
View File

@ -0,0 +1,21 @@
services:
diiis-na-server:
build:
context: .
dockerfile: Dockerfile
container_name: diiis-na-server
depends_on:
- db
db:
image: postgres:17
container_name: diiis-na-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=diablo
volumes:
- db-data:/var/lib/postgresql/data
volumes:
db-data:

View File

@ -11,7 +11,7 @@
; Enable or disable the Battle Server
Enabled = true
; IP address on which the server will be bound
BindIP = 127.0.0.1
BindIP = http://diiis-na-db
; Port for web interactions
WebPort = 83
; Port for the server