-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 831 Bytes
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 831 Bytes
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
---
version: "3.2"
services:
hubot:
build: .
# image: mohemohe/kokorobot:latest
env_file: .env
networks:
- default
ports:
- 8080:8080
volumes:
- hubot-nodemodules:/kokorobot/node_modules
- type: mount
source: /var/run/docker.sock
target: /var/run/docker.sock
depends_on:
- mongodb
healthcheck:
test: ["CMD", "wget", "-O", "-", "http://127.0.0.1:8080/"]
restart: on-failure
mongodb:
container_name: hubot-mongodb
image: mongo:4.0
networks:
- default
volumes:
- type: volume
source: mongo-db
target: /data/db
- type: volume
source: mongo-configdb
target: /data/configdb
restart: on-failure
volumes:
hubot-nodemodules:
mongo-db:
mongo-configdb:
networks:
default: