add basic services, and required directories

master
Arne Schröder 2020-10-18 14:07:42 +00:00
parent 4e6bc40eef
commit 21035f7b0d
9 changed files with 80 additions and 37 deletions

0
bitwarden/.gitkeep Normal file
View File

0
caddy_data/.gitkeep Normal file
View File

View File

@ -1,6 +1,10 @@
version: '2' version: '2'
service: networks:
caddy:
internal: true
services:
caddy: caddy:
image: lucaslorentz/caddy-docker-proxy image: lucaslorentz/caddy-docker-proxy
ports: ports:
@ -8,58 +12,97 @@ service:
- 443:443 - 443:443
networks: networks:
- caddy - caddy
- default
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
# this volume is needed to keep the certificates # this volume is needed to keep the certificates
# otherwise, new ones will be re-issued upon restart # otherwise, new ones will be re-issued upon restart
- caddy_data:/data - ./caddy_data:/data
labels: # Global options labels: # Global options
caddy.email: arne.schroeder@mailbox.org caddy.email: arne.schroeder@mailbox.org
# Proxy to service mqtt:
whoami0: image: eclipse-mosquitto:latest
image: jwilder/whoami container_name: mqtt
ports:
- 1883:1883
- 9001:9001
volumes:
- ./mqtt/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./mqtt/data:/mosquitto/data
- ./mqtt/log:/mosquotto/log
restart: always
networks:
- default
influxdb:
image: influxdb:latest
container_name: influxdb
ports:
- 8086:8086
environment:
- INFLUXDB_DB=data
- INFLUXDB_ADMIN_USER=admin
- INFLUXDB_ADMIN_PASSWORD=Schroeder87
- INFLUXDB_USER=arne
- INFLUXDB_USER_PASSWORD=Schroeder87
volumes:
- ./influxdb:/var/lib/influxdb
restart: always
networks:
- default
- caddy
grafana:
image: grafana/grafana:7.2.0
container_name: grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=Schroeder87
depends_on:
- influxdb
volumes:
- ./grafana:/var/lib/grafana
labels:
caddy: grafana.devsrv.fritz.box
caddy.reverse_proxy: "{{upstreams 3000}}"
caddy.tls: "internal"
restart: always
networks: networks:
- caddy - caddy
labels:
caddy: whoami0.devsrv.fritz.box
caddy.reverse_proxy: "{{upstreams 8000}}"
caddy.tls: "internal"
# Proxy to service that you want to expose to the outside world heimdall:
whoami1: image: linuxserver/heimdall
image: jwilder/whoami container_name: heimdall
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Berlin
volumes:
- ./heimdall:/config
labels:
caddy: devsrv.fritz.box
caddy.reverse_proxy: "{{upstreams 80}}"
caddy.tls: "internal"
restart: always
networks: networks:
- caddy - caddy
labels:
caddy: whoami1.devsrv.fritz.box
caddy.reverse_proxy: "{{upstreams 8000}}"
caddy.tls: "internal"
# remove the following line when you have verified your setup
# Otherwise you risk being rate limited by let's encrypt
#caddy.tls.ca: https://acme-staging-v02.api.letsencrypt.org/directory
# Proxy to container bitwarden:
whoami2: image: bitwardenrs/server:1.16.3-alpine
image: jwilder/whoami container_name: bitwarden
environment:
WEBSOCKET_ENABLED: 'true'
SIGNUPS_ALLOWED: 'true'
volumes:
- ./bitwarden:/data
labels:
caddy: pw.fritz.box
caddy.reverse_proxy: "{{upstreams 80}}"
caddy.tls: "internal"
restart: always
networks: networks:
- caddy - caddy
labels:
caddy: whoami2.devsrv.fritz.box
caddy.reverse_proxy: "{{upstreams 8000}}"
caddy.tls: "internal"
# Proxy to container
whoami3:
image: jwilder/whoami
networks:
- caddy
labels:
caddy: whoami3.devsrv.fritz.box
caddy.reverse_proxy: "{{upstreams 8000}}"
caddy.tls: "internal"
# Proxy with matches and route
echo_0: echo_0:
image: brndnmtthws/nginx-echo-headers image: brndnmtthws/nginx-echo-headers
networks: networks:

0
grafana/.gitkeep Normal file
View File

0
heimdall/.gitkeep Normal file
View File

0
influxdb/.gitkeep Normal file
View File

0
mqtt/data/.gitkeep Normal file
View File

0
mqtt/log/.gitkeep Normal file
View File

0
mqtt/mosquitto.conf Normal file
View File