-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-pi.yml
71 lines (65 loc) · 1.58 KB
/
docker-compose-pi.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
services:
smib-slack:
container_name: smib-slack
build:
context: .
dockerfile: smib-fast.Dockerfile
image: smib-slack
depends_on:
- smib-db
environment:
- WEBSERVER_HOST=smib-webserver
- WEBSOCKET_ALLOWED_HOSTS=smib-webserver.smib-bridge-network
- MONGO_DB_HOST=smib-db
volumes:
- /etc/smib/:/app/config/
- /var/log/smib/slack/:/app/logs/
command: "python -m smib.slack"
restart: unless-stopped
smib-webserver:
container_name: smib-webserver
build:
context: .
dockerfile: smib-fast.Dockerfile
image: smib-webserver
ports:
- 80:80
depends_on:
- smib-slack
environment:
- WEBSOCKET_HOST=smib-slack
volumes:
- /etc/smib/:/app/config/
- /var/log/smib/webserver/:/app/logs/
command: "python -m smib.webserver"
restart: unless-stopped
smib-db:
# Specific version - latest that works on a pi
image: mongo:4.4.18
container_name: smib-db
restart: unless-stopped
env_file:
- path: .env
required: false
volumes:
- /var/mongodb/db:/data/db
- /var/mongodb/configdb:/data/configdb
smib-db-ui:
image: mongo-express
container_name: smib-db-ui
depends_on:
- smib-db
restart: unless-stopped
env_file:
- path: .env
required: false
ports:
- 8082:8081
environment:
ME_CONFIG_MONGODB_URL: mongodb://smib-db:27017/
ME_CONFIG_BASICAUTH_ENABLED: true
ME_CONFIG_OPTIONS_READONLY: true
networks:
default:
name: smib-bridge-network
driver: bridge