This repository has been archived by the owner on Jul 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (40 loc) · 1.63 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: "3.3"
services:
traefik:
image: "traefik:2.3"
container_name: "traefik"
command:
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--log.level=DEBUG" # DEBUG, PANIC, FATAL, ERROR, WARN, INFO
- "--log.filePath=/logs/traefik.log"
- "--certificatesresolvers.myresolver.acme.tlschallenge=true"
# - "[email protected]"
- "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "./logs/:/logs/"
- "./letsencrypt:/letsencrypt"
frontend:
image: starting-page-frontend
container_name: "frontend"
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`${FRONTEND_DOMAIN}`)"
- "traefik.http.routers.frontend.entrypoints=websecure"
- "traefik.http.routers.frontend.tls.certresolver=myresolver"
backend:
image: starting-page-backend
container_name: "backend"
volumes:
- ./database:/App/database
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`${BACKEND_DOMAIN}`)"
- "traefik.http.routers.backend.entrypoints=websecure"
- "traefik.http.routers.backend.tls.certresolver=myresolver"