Files
karma/docker-compose.yaml
2022-07-26 11:01:02 +07:00

34 lines
879 B
YAML

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