-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
71 lines (66 loc) · 1.75 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
62
63
64
65
66
67
68
69
70
71
services:
influxdb:
image: influxdb:latest
container_name: influxdb
environment:
- DOCKER_INFLUXDB_INIT_MODE=setup
- DOCKER_INFLUXDB_INIT_USERNAME=${DOCKER_INFLUXDB_INIT_USERNAME}
- DOCKER_INFLUXDB_INIT_PASSWORD=${DOCKER_INFLUXDB_INIT_PASSWORD}
- DOCKER_INFLUXDB_INIT_ORG=${INFLUXDB_ORG}
- DOCKER_INFLUXDB_INIT_BUCKET=${INFLUXDB_BUCKET}
- DOCKER_INFLUXDB_INIT_RETENTION=0
volumes:
- influxdb-data:/var/lib/influxdb
- influxdb-ssl:/etc/ssl/influxdb
networks:
- private-network
ports:
- "8086:8086" # API Port
restart: unless-stopped
grafana:
image: grafana/grafana-enterprise
container_name: grafana
volumes:
- grafana-storage:/var/lib/grafana
networks:
- private-network
restart: unless-stopped
caddy:
image: caddy:latest
container_name: caddy
ports:
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
networks:
- private-network
restart: unless-stopped
feeder:
image: php:8.3-cli-alpine
container_name: feeder
volumes:
- ./icecast.php:/icecast.php
environment:
- ICECAST_URL=${ICECAST_URL}
- ICECAST_HOST=${ICECAST_HOST}
- ICECAST_USERNAME=${ICECAST_USERNAME}
- ICECAST_PASSWORD=${ICECAST_PASSWORD}
- INFLUXDB_URL=${INFLUXDB_URL}
- INFLUXDB_TOKEN=${INFLUXDB_TOKEN}
- INFLUXDB_ORG=${INFLUXDB_ORG}
- INFLUXDB_BUCKET=${INFLUXDB_BUCKET}
- INFLUXDB_PRECISION=${INFLUXDB_PRECISION}
networks:
- private-network
command: php /icecast.php
restart: unless-stopped
volumes:
influxdb-data:
driver: local
influxdb-ssl:
driver: local
grafana-storage:
driver: local
networks:
private-network:
driver: bridge