mirror-chhoto-url/docker-compose.yml
Przemek Dragańczuk 7f275bf6af
Sqlite as storage backend (#1)
Some platforms has some problems with file locking, so I was forced to use an alternative. SQLite seems be the best option currently available


* Migrated to an sqlite database

* Removed unnecessary IOExceptions

* Removed an util class not needed anymore

* Updated README.md and docker-compose.yml to reflect new storage mechanism
2020-03-24 09:07:25 +01:00

34 lines
1.2 KiB
YAML

version: "3"
services:
url:
# TODO: Publish to docker hub
build:
context: .
container_name: url
environment:
- db.url=/urls.sqlite
- username=${URL_LOGIN}
- password=${URL_PASSWORD}
volumes:
- ./urls.sqlite:/urls.sqlite
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