-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
59 lines (56 loc) · 1.99 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Docker composition for starting up the Moor system in cargo-watch mode, running with separate `daemon` and `host`
# binaries (communicating via ZMQ RPC),
# The first time the system starts, it will import JHCore-DEV-2.db from the root of the repository. This is a recent
# JaysHouseCore database, with no modifications. After import, `development.db` will contain the database
# that resulted. To re-import the textdump, simply delete this directory.
# After this is running, a MUD client / telnet client can connect to port 8888 on localhost to interact with the
# system. (e.g. telnet localhost 8888). Or a websocket client can connect to port 8080 on localhost.
networks:
moor_net:
services:
moor-daemon:
build:
context: .
network: host
container_name: "moor-daemon"
environment:
- RUST_BACKTRACE=1
working_dir: /moor
command: >
sh -c "./moor-daemon development.db --rpc-listen=tcp://0.0.0.0:7899 --events-listen=tcp://0.0.0.0:7898 --textdump=JHCore-DEV-2.db --textdump-out=textdump-out --checkpoint-interval-seconds=360"
ports:
# ZMQ ports
- "7899:7899"
- "7898:7898"
networks:
- moor_net
moor-telnet-host:
build:
context: .
network: host
container_name: "moor-telnet-host"
environment:
- RUST_BACKTRACE=1
working_dir: /moor
command: >
sh -c "./moor-telnet-host --telnet-address=0.0.0.0 --telnet-port=8888 --rpc-address=tcp://moor-daemon:7899 --events-address=tcp://moor-daemon:7898"
ports:
# Telnet listener
- "8888:8888"
networks:
- moor_net
moor-web-host:
build:
context: .
network: host
container_name: "moor-web-host"
environment:
- RUST_BACKTRACE=1
working_dir: /moor
command: >
sh -c "./moor-web-host --listen-address=0.0.0.0:8080 --rpc-address=tcp://moor-daemon:7899 --events-address=tcp://moor-daemon:7898 --client-sources=./client"
ports:
# HTTP listener
- "8080:8080"
networks:
- moor_net