fix: clean up Docker setup (compose, README, gitignore)

- Remove deprecated version field from docker-compose.yml
- Pin Postgres to 18-alpine (matches existing db-data)
- Remove undocumented web (Apache) service
- Fix config/bin volume mounts to use docker/ directory
- Gitignore docker/savedata, docker/bin, docker/config.json
- Rewrite docker/README.md: fix typos, use docker compose V2
  commands, match actual compose file behavior
- Link docker/README.md from main README Docker section
This commit is contained in:
Houmgaor
2026-02-17 15:16:57 +01:00
parent 3413ff638a
commit a8f70df1fb
4 changed files with 59 additions and 90 deletions

View File

@@ -1,18 +1,16 @@
version: "3.9"
# 1. docker-compose up db pgadmin
# 2. Use pgadmin to restore db and also apply patch-schema
# 3. Configure the config.json example. in docker you can point to the service name for the database i.e db
# 4. In seperate terminal docker-compose up server
# 5. If all went well happy hunting!
services:
# 1. Copy config.example.json to docker/config.json and edit it
# (set Database.Host to "db", adjust password to match below)
# 2. Place quest/scenario files in docker/bin/
# 3. docker compose up
services:
db:
image: postgres
image: postgres:18-alpine
environment:
# (Make sure these match config.json)
# Change this password and match it in docker/config.json
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
- POSTGRES_DB=erupe
ports:
ports:
- "5432:5432"
volumes:
- ./db-data/:/var/lib/postgresql/data/
@@ -44,8 +42,8 @@ services:
# build:
# context: ../
volumes:
- ../config.json:/app/erupe/config.json
- ../bin:/app/erupe/bin
- ./config.json:/app/erupe/config.json
- ./bin:/app/erupe/bin
- ./savedata:/app/erupe/savedata
ports:
# (Make sure these match config.json)
@@ -53,7 +51,7 @@ services:
- "8080:8080" #Sign V2
- "53310:53310" #Entrance
# Channels
- "54001:54001"
- "54001:54001"
- "54002:54002"
- "54003:54003"
- "54004:54004"
@@ -61,13 +59,3 @@ services:
- "54006:54006"
- "54007:54007"
- "54008:54008"
web:
image: httpd:latest
container_name: my-apache-app
ports:
- '80:80'
volumes:
- ./Servers:/usr/local/apache2/htdocs
depends_on:
db:
condition: service_healthy