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:
parent
3cb03e8ffd
commit
b19a196a05
21
docker-compose.yaml
Normal file
21
docker-compose.yaml
Normal 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:
|
||||||
@ -11,7 +11,7 @@
|
|||||||
; Enable or disable the Battle Server
|
; Enable or disable the Battle Server
|
||||||
Enabled = true
|
Enabled = true
|
||||||
; IP address on which the server will be bound
|
; IP address on which the server will be bound
|
||||||
BindIP = 127.0.0.1
|
BindIP = http://diiis-na-db
|
||||||
; Port for web interactions
|
; Port for web interactions
|
||||||
WebPort = 83
|
WebPort = 83
|
||||||
; Port for the server
|
; Port for the server
|
||||||
|
|||||||
Loading…
Reference in New Issue
user.block.title