-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
61 lines (55 loc) · 1.24 KB
/
docker-compose.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
version: '3'
services:
influxdb:
image: influxdb:2.0
container_name: shelly-pdu-influxdb
restart: always
volumes:
- influxdb_data:/var/lib/influxdb2
environment:
DOCKER_INFLUXDB_INIT_MODE: setup
DOCKER_INFLUXDB_INIT_USERNAME: admin
DOCKER_INFLUXDB_INIT_PASSWORD: CHANGE_ME
DOCKER_INFLUXDB_INIT_ORG: shelly-pdu
DOCKER_INFLUXDB_INIT_BUCKET: shelly-pdu
DOCKER_INFLUXDB_INIT_ADMIN_TOKEN: CHANGE_ME
networks:
- internal
shelly-pdu-backend:
build:
context: ./backend
container_name: shelly-pdu-backend
restart: unless-stopped
depends_on:
- influxdb
volumes:
- ./config.yml:/app/config.yml:ro
networks:
- internal
shelly-pdu-frontend:
build:
context: ./frontend
container_name: shelly-pdu-frontend
restart: unless-stopped
depends_on:
- influxdb
- shelly-pdu-backend
networks:
- internal
ingress-switch:
build:
context: ./switch
container_name: shelly-pdu-ingress
restart: unless-stopped
depends_on:
- shelly-pdu-backend
- shelly-pdu-frontend
ports:
- "80:80"
networks:
- internal
volumes:
influxdb_data:
networks:
internal:
driver: bridge