-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
28 lines (27 loc) · 1.02 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
version: "3.9"
services:
mal-manager:
container_name: mal-manager
restart: unless-stopped
build: .
volumes:
- .:/app
ports:
- "${SERVER_PORT_HOST-7777}:${SERVER_PORT_GUEST-7777}"
labels:
- "traefik.enable=true"
- "traefik.http.routers.mal-manager.entrypoints=http"
- "traefik.http.routers.mal-manager.rule=Host(`${APP_URL}`)"
- "traefik.http.middlewares.traefik-https-redirect.redirectscheme.scheme=https"
- "traefik.http.middlewares.sslheader.headers.customrequestheaders.X-Forwarded-Proto=https"
- "traefik.http.routers.mal-manager.middlewares=traefik-https-redirect"
- "traefik.http.routers.mal-manager-secure.entrypoints=https"
- "traefik.http.routers.mal-manager-secure.rule=Host(`${APP_URL}`)"
- "traefik.http.services.mal-manager.loadbalancer.server.port=${SERVER_PORT_GUEST-7777}"
- "traefik.http.routers.mal-manager-secure.tls=true"
networks:
- proxy
command: ["python", "main.py"]
networks:
proxy:
external: true