Init jafner-chat

This commit is contained in:
joey 2022-11-12 17:59:28 -08:00
parent a2507916d1
commit 986a536eb1
4 changed files with 68 additions and 0 deletions

View 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

View File

@ -0,0 +1 @@
DOCKER_DATA=/home/joey/data/traefik

View 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

View 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