Update docker-compose.yaml, config.yaml, README.md
This commit is contained in:
33
docker-compose.yaml
Normal file
33
docker-compose.yaml
Normal 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
|
||||
|
Reference in New Issue
Block a user