Merge pull request 'traefikintegration' (#4) from traefikintegration into TraefikIntegration
Reviewed-on: #4
This commit is contained in:
commit
e59a398406
@ -16,9 +16,9 @@ services:
|
|||||||
- traefik
|
- traefik
|
||||||
- db
|
- db
|
||||||
environment:
|
environment:
|
||||||
|
- MYSQL_USER=nextcloud
|
||||||
- MYSQL_PASSWORD=
|
- MYSQL_PASSWORD=
|
||||||
- MYSQL_DATABASE=nextcloud
|
- MYSQL_DATABASE=nextcloud
|
||||||
- MYSQL_USER=nextcloud
|
|
||||||
- MYSQL_HOST=db
|
- MYSQL_HOST=db
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
@ -32,9 +32,9 @@ services:
|
|||||||
- nextcloud
|
- nextcloud
|
||||||
environment:
|
environment:
|
||||||
- MYSQL_ROOT_PASSWORD=
|
- MYSQL_ROOT_PASSWORD=
|
||||||
|
- MYSQL_USER=nextcloud
|
||||||
- MYSQL_PASSWORD=
|
- MYSQL_PASSWORD=
|
||||||
- MYSQL_DATABASE=nextcloud
|
- MYSQL_DATABASE=nextcloud
|
||||||
- MYSQL_USER=nextcloud
|
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
version: '3.8'
|
|
||||||
|
|
||||||
services:
|
|
||||||
|
|
||||||
#nginx (80, 443, 8080)
|
|
||||||
nginx:
|
|
||||||
image: 'jc21/nginx-proxy-manager:latest'
|
|
||||||
container_name: nginx
|
|
||||||
ports:
|
|
||||||
# These ports are in format <host-port>:<container-port>
|
|
||||||
- '80:80' # Public HTTP Port
|
|
||||||
- '443:443' # Public HTTPS Port
|
|
||||||
- '8080:81' # Admin Web Port
|
|
||||||
# Add any other Stream port you want to expose
|
|
||||||
# - '21:21' # FTP
|
|
||||||
# Uncomment the next line if you uncomment anything in the section
|
|
||||||
# environment:
|
|
||||||
# Uncomment this if you want to change the location of
|
|
||||||
# the SQLite DB file within the container
|
|
||||||
# DB_SQLITE_FILE: "/data/database.sqlite"
|
|
||||||
|
|
||||||
# Uncomment this if IPv6 is not enabled on your host
|
|
||||||
# DISABLE_IPV6: 'true'
|
|
||||||
volumes:
|
|
||||||
- ./nginx/data:/data
|
|
||||||
- ./nginx/letsencrypt:/etc/letsencrypt
|
|
||||||
restart: unless-stopped
|
|
||||||
|
|
||||||
networks:
|
|
||||||
- websites
|
|
||||||
- gitea
|
|
||||||
- databases
|
|
||||||
- bitwarden
|
|
||||||
- nextcloud
|
|
||||||
|
|
||||||
networks:
|
|
||||||
websites:
|
|
||||||
name: websites_default
|
|
||||||
gitea:
|
|
||||||
name: gitea_default
|
|
||||||
databases:
|
|
||||||
name: database_default
|
|
||||||
bitwarden:
|
|
||||||
name: bitwarden_default
|
|
||||||
nextcloud:
|
|
||||||
name: nextcloud_default
|
|
@ -6,24 +6,50 @@ services:
|
|||||||
traefik:
|
traefik:
|
||||||
image: 'traefik:latest'
|
image: 'traefik:latest'
|
||||||
container_name: traefik
|
container_name: traefik
|
||||||
ports:
|
|
||||||
# These ports are in format <host-port>:<container-port>
|
|
||||||
- '80:80' # Public HTTP Port
|
|
||||||
- '443:443' # Public HTTPS Port
|
|
||||||
- '8080:8080' # Dashboard Port
|
|
||||||
volumes:
|
volumes:
|
||||||
- ./nginx/data:/data
|
- ./letsencrypt:/letsencrypt
|
||||||
- ./nginx/letsencrypt:/etc/letsencrypt
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
restart: unless-stopped
|
- ./dynamic.yaml:/dynamic.yaml
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
|
## Traefik is sat on every network to allow exposure ##
|
||||||
- traefik
|
- traefik
|
||||||
- frontend
|
- frontend
|
||||||
- development
|
- development
|
||||||
- backend
|
- backend
|
||||||
- bitwarden
|
- bitwarden
|
||||||
- services
|
- services
|
||||||
|
ports:
|
||||||
|
## These ports are in format <host-port>:<container-port> ##
|
||||||
|
- '80:80' # Public HTTP Port
|
||||||
|
- '443:443' # Public HTTPS Port
|
||||||
|
- '8080:8080' # Dashboard Port
|
||||||
|
command:
|
||||||
|
## General Settings ##
|
||||||
|
- --api.insecure=true
|
||||||
|
- --api.dashboard=true
|
||||||
|
- --api.debug=true
|
||||||
|
## Log Settings ##
|
||||||
|
- --log.level=DEBUG # <== Setting the level of the logs from traefik
|
||||||
|
## Provider Settings ##
|
||||||
|
- --providers.docker=true
|
||||||
|
- --providers.docker.exposedbydefault=false
|
||||||
|
- --providers.file.filename=/dynamic.yaml
|
||||||
|
## Entrypoints Settings ##
|
||||||
|
- --entrypoints.http.address=:80
|
||||||
|
- --entrypoints.https.address=:443
|
||||||
|
## Certificate Settings ##
|
||||||
|
- --certificatesresolvers.mytlschallenge.acme.tlschallenge=true
|
||||||
|
- --certificatesresolvers.mytlschallenge.acme.email=contact@luke-else.co.uk
|
||||||
|
- --certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json
|
||||||
|
labels:
|
||||||
|
## Exposing API Dashboard Service ##
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.api.rule=Host(traefik.luke-else.co.uk)"
|
||||||
|
- "traefik.http.routers.api.service=api@internal"
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
|
||||||
|
## All Networks for child containers - All containers depend on this container being spun up ##
|
||||||
networks:
|
networks:
|
||||||
traefik:
|
traefik:
|
||||||
name: traefik
|
name: traefik
|
||||||
|
Loading…
Reference in New Issue
Block a user