Update docker-compose.yaml, config.yaml, README.md

This commit is contained in:
Vassiliy Yegorov
2022-07-26 11:01:02 +07:00
parent 04bb2d8c2f
commit 6e0410ee7c
3 changed files with 160 additions and 85 deletions

33
docker-compose.yaml Normal file
View File

@@ -0,0 +1,33 @@
version: '3.7'
services:
karma:
image: ghcr.io/prymitive/karma
container_name: karma
restart: always
labels:
- "traefik.enable=true"
- "traefik.http.routers.karma.entrypoints=https"
- "traefik.http.routers.karma.rule=Host(`karma.domain.com`)"
- "traefik.http.routers.karma.tls=true"
- "traefik.http.routers.karma.tls.certresolver=letsEncrypt"
- "traefik.http.services.karma-service.loadbalancer.server.port=8080"
- "traefik.http.routers.karma.middlewares=karma-auth"
- "traefik.http.middlewares.karma-auth.basicauth.users=admin:password"
- "traefik.docker.network=webproxy"
expose:
- "8080"
environment:
CONFIG_FILE: /config.yaml
volumes:
- ./config.yaml:/config.yaml
networks:
- karma_net
- webproxy
networks:
karma_net:
name: karma_net
webproxy:
external: true