Init jafner-chat
This commit is contained in:
parent
a2507916d1
commit
986a536eb1
14
homelab/jafner-chat/config/nginx/docker-compose.yml
Normal file
14
homelab/jafner-chat/config/nginx/docker-compose.yml
Normal file
@ -0,0 +1,14 @@
|
||||
version: '3'
|
||||
services:
|
||||
nginx:
|
||||
image: nginx
|
||||
container_name: nginx_test
|
||||
networks:
|
||||
- web
|
||||
labels:
|
||||
- traefik.http.routers.nginx.rule=Host(`test.jafner.chat`)
|
||||
- traefik.http.routers.nginx.tls.certresolver=lets-encrypt
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
1
homelab/jafner-chat/config/traefik/.env
Normal file
1
homelab/jafner-chat/config/traefik/.env
Normal file
@ -0,0 +1 @@
|
||||
DOCKER_DATA=/home/joey/data/traefik
|
21
homelab/jafner-chat/config/traefik/docker-compose.yml
Normal file
21
homelab/jafner-chat/config/traefik/docker-compose.yml
Normal file
@ -0,0 +1,21 @@
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
traefik:
|
||||
image: traefik:latest
|
||||
container_name: traefik_traefik
|
||||
restart: "no"
|
||||
networks:
|
||||
- web
|
||||
ports:
|
||||
- 80:80
|
||||
- 443:443
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
- ./traefik.yaml:/traefik.yaml
|
||||
- ./config:/config
|
||||
- $DOCKER_DATA/acme.json:/acme.json
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
32
homelab/jafner-chat/config/traefik/traefik.yml
Normal file
32
homelab/jafner-chat/config/traefik/traefik.yml
Normal file
@ -0,0 +1,32 @@
|
||||
entryPoints:
|
||||
web:
|
||||
address: :80
|
||||
http:
|
||||
redirections:
|
||||
entryPoint:
|
||||
to: websecure
|
||||
scheme: https
|
||||
websecure:
|
||||
address: :443
|
||||
|
||||
metrics:
|
||||
prometheus: {}
|
||||
|
||||
certificatesResolvers:
|
||||
lets-encrypt:
|
||||
acme:
|
||||
email: jafner425@gmail.com
|
||||
storage: acme.json
|
||||
tlsChallenge: {}
|
||||
|
||||
api:
|
||||
insecure: true
|
||||
dashboard: true
|
||||
|
||||
providers:
|
||||
docker:
|
||||
watch: true
|
||||
network: web
|
||||
file:
|
||||
directory: /config
|
||||
|
Loading…
Reference in New Issue
Block a user