Add docker-compose-treafik.yml
This commit is contained in:
30
docker-compose-treafik.yml
Normal file
30
docker-compose-treafik.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
faved:
|
||||
image: denho/faved:latest
|
||||
networks:
|
||||
- pangolin_public
|
||||
|
||||
volumes:
|
||||
- /mnt/DockerStorage/data/faved:/var/www/html/storage
|
||||
- /mnt/DockerStorage/data/faved/temp:/tmp
|
||||
|
||||
deploy:
|
||||
replicas: 1
|
||||
restart_policy:
|
||||
condition: on-failure
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.docker.network=pangolin_public"
|
||||
|
||||
- "traefik.http.routers.faved.rule=Host(`faved.yourdomain.com`)"
|
||||
- "traefik.http.routers.faved.entrypoints=websecure"
|
||||
- "traefik.http.routers.faved.tls=true"
|
||||
|
||||
# Faved listens on 80 in the container (official usage) 【3-77eeac】【4-bef2e6】
|
||||
- "traefik.http.services.faved.loadbalancer.server.port=80"
|
||||
|
||||
networks:
|
||||
pangolin_public:
|
||||
external: true
|
||||
Reference in New Issue
Block a user