forked from DeviaVir/zenbot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-traefik.yml
68 lines (65 loc) · 1.55 KB
/
docker-compose-traefik.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
version: '3.1'
services:
zenbotserver:
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/app/
- /app/node_modules/
- /app/dist/
restart: always
tty: true
expose:
- "17365"
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:$(TRAEFIK_HOST_ZEN)"
- "traefik.docker.network=$(TRAEFIK_NETWORK_NAME)"
- "traefik.port=17365"
- "traefik.frontend.auth.basic=$(BASIC_AUTH_ZEN)"
networks:
- internal
- proxy
depends_on:
- mongodb
environment:
- MONGODB_PORT_27017_TCP_ADDR=mongodb
mongodb:
image: mongo:latest
restart: always
volumes:
- ./data/db:/data/db
command: mongod --smallfiles --bind_ip=0.0.0.0 --logpath=/dev/null
networks:
- internal
expose:
- 27017
# "adminMongo is a Web based user interface (GUI) to handle all your MongoDB connections/databases needs."
adminmongo:
image: mrvautin/adminmongo
expose:
- 1234
depends_on:
- mongodb
environment:
- "CONN_NAME=zenbot_mongodb"
- "DB_HOST=mongodb"
- "DB_PORT=27017"
- "HOST=0.0.0.0"
labels:
- "traefik.enable=true"
- "traefik.frontend.rule=Host:$(TRAEFIK_HOST_DB)"
- "traefik.docker.network=$(TRAEFIK_NETWORK_NAME)"
- "traefik.port=1234"
- "traefik.frontend.auth.basic=$(BASIC_AUTH_DB)"
networks:
- internal
- proxy
command: "npm start"
networks:
proxy:
external:
name: "$(TRAEFIK_NETWORK_NAME)"
internal:
external: false