Init jafner-chat
This commit is contained in:
parent
6c70572ba5
commit
769408269b
14
jafner-chat/config/nginx/docker-compose.yml
Normal file
14
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
jafner-chat/config/traefik/.env
Normal file
1
jafner-chat/config/traefik/.env
Normal file
@ -0,0 +1 @@
|
|||||||
|
DOCKER_DATA=/home/joey/data/traefik
|
21
jafner-chat/config/traefik/docker-compose.yml
Normal file
21
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
jafner-chat/config/traefik/traefik.yml
Normal file
32
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