mirror of
https://github.com/minoplhy/chhoto-url.git
synced 2024-11-22 17:26:45 +00:00
merge
This commit is contained in:
parent
e95636c52e
commit
fc5563096b
@ -1,12 +1,33 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
services:
|
services:
|
||||||
url:
|
url:
|
||||||
# TODO: Publish to docker hub
|
# TODO: Publish to docker hub
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
ports:
|
# ports:
|
||||||
- 4567:4567
|
# - 4567:4567
|
||||||
environment:
|
environment:
|
||||||
- file.location=/urls.csv
|
- file.location=/urls.csv
|
||||||
volumes:
|
volumes:
|
||||||
- ./urls.csv:/urls.csv
|
- ./urls.csv:/urls.csv
|
||||||
|
networks:
|
||||||
|
- ${NETWORK}
|
||||||
|
labels:
|
||||||
|
- "traefik.enable=true"
|
||||||
|
- "traefik.http.routers.url.entrypoints=http"
|
||||||
|
- "traefik.http.routers.url.rule=Host(`url.${TLD}`)"
|
||||||
|
- "traefik.http.middlewares.url-https-redirect.redirectscheme.scheme=https"
|
||||||
|
- "traefik.http.routers.url.middlewares=url-https-redirect"
|
||||||
|
- "traefik.http.routers.url-secure.entrypoints=https"
|
||||||
|
- "traefik.http.routers.url-secure.rule=Host(`url.${TLD}`)"
|
||||||
|
- "traefik.http.routers.url-secure.tls=true"
|
||||||
|
- "traefik.http.routers.url-secure.tls.certresolver=http"
|
||||||
|
- "traefik.http.routers.url-secure.service=url"
|
||||||
|
- "traefik.http.services.url.loadbalancer.server.port=4567"
|
||||||
|
- "traefik.docker.network=proxy"
|
||||||
|
restart: ${RESTART}
|
||||||
|
|
||||||
|
networks:
|
||||||
|
proxy:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user