-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
67 lines (62 loc) · 1.65 KB
/
docker-compose.yaml
File metadata and controls
67 lines (62 loc) · 1.65 KB
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
version: '3'
services:
api:
image: ghcr.io/sofusskovgaard/smarthome:worker-latest
restart: always
ports:
- 4001:4001
environment:
- INFLUXDB_TOKEN=UhsldqbJBm2f4I2GC7KyuukzAzxOE_LPf6mCb7Y2TOfGLNNmfwKqeyzGcBhmKhfd6XqHgjyWdz1tIVuep8gJhQ==
- INFLUXDB_BUCKET=main
- INFLUXDB_ORG=smart-home
- INFLUXDB_HOST=influxdb
- RABBITMQ_USER=guest
- RABBITMQ_PASSWORD=guest
- RABBITMQ_HOST=rabbitmq
- RABBITMQ_PORT=5672
depends_on:
- rabbitmq
- influxdb
labels:
- "com.centurylinklabs.watchtower.enable=true"
rabbitmq:
image: rabbitmq:3.10.5-management-alpine
restart: always
ports:
- 1883:1883
- 5672:5672
- 15672:15672
volumes:
- ./enabled-plugins:/etc/rabbitmq/enabled_plugins
influxdb:
image: influxdb:2.3.0-alpine
restart: always
ports:
- 8086:8086
volumes:
- "influxdb:/var/lib/influxdb"
- "influxdb2:/var/lib/influxdb2"
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=sofus
- DOCKER_INFLUXDB_INIT_PASSWORD=p@ssw0rd
- DOCKER_INFLUXDB_INIT_ORG=smart-home
- DOCKER_INFLUXDB_INIT_BUCKET=main
watchtower:
image: containrrr/watchtower
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/timezone:/etc/timezone:ro
environment:
- WATCHTOWER_CLEANUP=true
- WATCHTOWER_LABEL_ENABLE=true
- WATCHTOWER_INCLUDE_RESTARTING=true
- WATCHTOWER_POLL_INTERVAL=120
labels:
- "com.centurylinklabs.watchtower.enable=true"
volumes:
influxdb:
external: true
influxdb2:
external: true