-
Notifications
You must be signed in to change notification settings - Fork 42
/
docker-compose.yml
109 lines (104 loc) · 2.72 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
networks:
neohabitat:
external: false
services:
neohabitatmariadb:
image: mariadb
environment:
- MYSQL_ROOT_PASSWORD=dev
- MYSQL_DATABASE=qlink
- MYSQL_USER=qlink
- MYSQL_PASSWORD=qlink
- MYSQL_ROOT_HOST=%
ports:
- "3306:3306"
healthcheck:
test: ["CMD-SHELL", "echo 'SELECT version();'| MYSQL_PWD='qlink' mariadb -u qlink"]
interval: 300s
timeout: 30s
retries: 30
volumes:
- ./data/mariadb:/var/lib/mysql
networks:
- neohabitat
neohabitatmongo:
image: mongodb/mongodb-community-server:latest
ports:
- "27017:27017"
healthcheck:
test: ["CMD", "mongosh", "--eval", "db.stats()"]
interval: 300s
timeout: 30s
retries: 30
networks:
- neohabitat
neohabitat:
build: .
volumes:
- .:/neohabitat
# make sure to build this with `docker compose build` when doing development to compile your local changes.
image: frandallfarmer/neohabitat
environment:
- NEOHABITAT_BRIDGE_ELKO_HOST=neohabitat:2018
- NEOHABITAT_MONGO_HOST=neohabitatmongo:27017
- NEOHABITAT_SHOULD_ENABLE_DEBUGGER
- NEOHABITAT_SHOULD_RUN_BRIDGE=true
- NEOHABITAT_SHOULD_RUN_NEOHABITAT=true
- NEOHABITAT_SHOULD_RUN_PUSHSERVER=true
- NEOHABITAT_SHOULD_UPDATE_SCHEMA
- NEOHABITAT_SERVER_HOST=neohabitat
- NEOHABITAT_SERVER_PORT=1337
- HABIPROXY_ELKO_HOST=neohabitat
- HABIPROXY_ELKO_PORT=9000
- NODE_ENV=development
- PUSH_SERVER_CONFIG=./config.dev.yml
- PUSH_SERVER_MONGO_URL=mongodb://neohabitatmongo
healthcheck:
test: ["CMD-SHELL", "nc -z neohabitat 1337"]
interval: 300s
timeout: 30s
retries: 30
ports:
- "1337:1337"
- "1701:1701"
- "1987:1987"
- "5005:5005"
depends_on:
neohabitatmongo:
condition: service_healthy
networks:
- neohabitat
qlink:
image: philcollins/qlink
environment:
- QLINK_DB_HOST=neohabitatmariadb
- QLINK_DB_JDBC_URI=jdbc:mysql://neohabitatmariadb:3306/qlink
- QLINK_DB_USERNAME=qlink
- QLINK_DB_PASSWORD=qlink
- QLINK_HABITAT_HOST=neohabitat
- QLINK_HABITAT_PORT=1337
- QLINK_HABITAT_USE_FRAMING=true
ports:
- "1986:1986"
depends_on:
neohabitatmariadb:
condition: service_healthy
networks:
- neohabitat
ulimits:
nofile:
soft: 10000
hard: 10000
bots:
build:
context: ./habibots
environment:
- HABIBOTS_HOST=neohabitat
- HABIBOTS_PORT=1337
depends_on:
neohabitat:
condition: service_healthy
networks:
- neohabitat
entrypoint: ['/habibots/run']
command: ['hatchery', 'eliza']