-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (53 loc) · 1.49 KB
/
docker-compose.yml
File metadata and controls
57 lines (53 loc) · 1.49 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
world-data:
image: alpine:latest
command: >
sh -c "apk add --no-cache git openssl &&
if [ -d /world/.git ]; then
cd /world && git pull;
else
git clone https://github.com/hybrasyl/ceridwen.git /world;
fi &&
if [ ! -e /world/grpc-cert.pem ]; then
openssl req -x509 -newkey rsa:2048 -nodes -subj "/CN=hybrasyl-docker" -addext "subjectAltName=DNS:hybrasyl-server,DNS:localhost,IP:127.0.0.1" -keyout /world/grpc-key.pem -out /world/grpc-cert.pem -days 365 -sha256 &&
chmod 755 /world/grpc-cert.pem /world/grpc-key.pem
fi"
volumes:
- world:/world
valkey:
image: valkey/valkey:latest
volumes:
- valkey-data:/data
networks:
- hybrasyl
hybrasyl-server:
image: ghcr.io/hybrasyl/server:latest
container_name: hybrasyl-server
platform: linux/amd64
build: . # uncomment to build from source
ports:
- "2610:2610" # lobby
- "2611:2611" # login
- "2612:2612" # world
- "2613:2613" # grpc
networks:
- hybrasyl
environment:
- HYB_REDIS_HOST=valkey
- HYB_DATA_DIR=/world
- HYB_WORLD_DIR=/world/xml
- HYB_CONFIG_FILE=/config/config.xml
volumes:
- world:/world:ro
- ./contrib/config.xml:/config/config.xml:ro
depends_on:
world-data:
condition: service_completed_successfully
valkey:
condition: service_started
volumes:
world:
valkey-data:
networks:
hybrasyl:
external: true