64 lines
1.9 KiB
YAML
64 lines
1.9 KiB
YAML
version: "3.3"
|
|
|
|
services:
|
|
|
|
traefik:
|
|
image: "traefik:latest"
|
|
container_name: "traefik"
|
|
command:
|
|
# - "--log.level=DEBUG"
|
|
- "--api.insecure=true"
|
|
- "--providers.docker=true"
|
|
- "--providers.docker.exposedbydefault=false"
|
|
- "--providers.file.directory=/etc/traefik/dynamic_conf.d"
|
|
- "--entryPoints.https.address=:443"
|
|
- "--entryPoints.http.address=:80"
|
|
- "--certificatesresolvers.letsencrypt.acme.storage=/etc/traefik/letsencrypt/acme.json"
|
|
- "--certificatesresolvers.letsencrypt.acme.email=infra@clps.ch"
|
|
- "--certificatesresolvers.letsencrypt.acme.tlschallenge=true"
|
|
volumes:
|
|
- "/home/cloud/traefik/dynamic_conf.d:/etc/traefik/dynamic_conf.d/"
|
|
- "/home/cloud/traefik/letsencrypt/acme.json:/etc/traefik/letsencrypt/acme.json"
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
- "8069:8080"
|
|
|
|
grafana:
|
|
image: "grafana/grafana:latest"
|
|
container_name: "grafana"
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.grafana.rule=Host(`grafana.clps.ch`)"
|
|
- "traefik.http.routers.grafana.entrypoints=https"
|
|
- "traefik.http.routers.grafana.tls.certresolver=letsencrypt"
|
|
- "traefik.http.routers.grafana.tls=true"
|
|
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
|
|
depends_on:
|
|
- traefik
|
|
#networks:
|
|
# - traefik-net
|
|
|
|
nextcloud:
|
|
image: "nextcloud/all-in-one:latest"
|
|
container_name: "nextcloud-aio-mastercontainer"
|
|
init: true
|
|
environment:
|
|
- "APACHE_PORT=11000"
|
|
- "APACHE_IP_BINDING=0.0.0.0"
|
|
ports:
|
|
- "8080:8080"
|
|
- "8443:8443"
|
|
volumes:
|
|
- "nextcloud_aio_mastercontainer:/mnt/docker-aio-config"
|
|
- "/var/run/docker.sock:/var/run/docker.sock:ro"
|
|
depends_on:
|
|
- traefik
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
nextcloud_aio_mastercontainer:
|
|
|