-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-full.yml
96 lines (88 loc) · 2.52 KB
/
docker-compose-full.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
version: '3'
services:
kotori:
image: daqzilla/kotori:${KOTORI_IMAGE_VERSION}
restart: unless-stopped
ports:
- ${KOTORI_PORT}:24642
command: "kotori --config /etc/kotori/kotori.ini --debug --debug-io --debug-influx"
volumes:
- ${VOLUMES_DIR}/kotori/conf:/etc/kotori
depends_on:
- mosquitto
- influxdb
- grafana
mosquitto:
image: eclipse-mosquitto:${MOSQUITTO_IMAGE_VERSION}
restart: unless-stopped
ports:
- ${MOSQUITTO_MQTT_PORT}:1883
- ${MOSQUITTO_WS_PORT}:9001
volumes:
- ${VOLUMES_DIR}/mosquitto/conf:/mosquitto/config
- ${VOLUMES_DIR}/mosquitto/data:/mosquitto/data
influxdb:
image: influxdb:${INFLUXDB_IMAGE_VERSION}
restart: unless-stopped
ports:
- ${INFLUXDB_HTTP_PORT}:8086
volumes:
- ${VOLUMES_DIR}/influxdb/data:/var/lib/influxdb
- ${VOLUMES_DIR}/influxdb/conf:/etc/influxdb
grafana:
image: grafana/grafana:${GRAFANA_IMAGE_VERSION}
# https://community.grafana.com/t/new-docker-install-with-persistent-storage-permission-problem/10896/15
user: "${UID}:${GID}"
restart: unless-stopped
ports:
- ${GRAFANA_PORT}:3000
volumes:
- ${VOLUMES_DIR}/grafana/data:/var/lib/grafana
- ${VOLUMES_DIR}/grafana/log:/var/log/grafana
depends_on:
- influxdb
mongodb:
image: mongo:${MONGODB_IMAGE_VERSION}
restart: always
volumes:
- ${VOLUMES_DIR}/mongodb/data:/data/db
- ${VOLUMES_DIR}/mongodb/log:/var/log/mongodb
redis:
image: redis:${REDIS_IMAGE_VERSION}
restart: always
volumes:
- ${VOLUMES_DIR}/redis/data:/data
putsreq:
image: daqzilla/putsreq:${PUTSREQ_IMAGE_VERSION}
restart: always
tty: true
stdin_open: true
command: /bin/sh -c "rm -f /app/tmp/pids/server.pid && bundle exec rails server -p 3000 -b '0.0.0.0'"
ports:
- '${PUTSREQ_PORT}:3000'
environment:
- RAILS_ENV=production
- MONGOLAB_URI=mongodb://mongodb
- REDIS_URL=redis://redis
- DEVISE_SECRET_KEY=123
- SECRET_TOKEN=123
volumes:
- ${VOLUMES_DIR}/putsreq/environments:/app/config/environments
depends_on:
- mongodb
- redis
- kotori
putsreq_reverse_proxy:
image: nginx
restart: always
volumes:
- ${VOLUMES_DIR}/nginx/templates:/etc/nginx/templates
- ${VOLUMES_DIR}/nginx/log:/var/log/nginx
ports:
- "9090:80"
environment:
- NGINX_HOST=localhost
- NGINX_PORT=80
- PUTSREQ_BUCKET=<BUCKET_ID>
depends_on:
- putsreq