-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
45 lines (43 loc) · 1.27 KB
/
docker-compose.yaml
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
44
45
services:
panoctagon_backend:
build:
context: .
dockerfile: Dockerfile-backend
labels:
- "traefik.http.routers.panoctagon_backend.rule=Host(`backend.panoctagon.com`)"
- "traefik.enable=true"
- "traefik.http.routers.panoctagon_backend.entrypoints=websecure"
- "traefik.http.routers.panoctagon_backend.tls.certresolver=myresolver"
- "traefik.http.routers.panoctagon_backend.middlewares=auth"
- "traefik.http.middlewares.auth.basicauth.users=${BACKEND_ADMIN}:${BACKEND_HASH}"
volumes:
- panoctagon_data:/panoctagon/data
networks:
- jb-proxy
panoctagon_frontend:
build:
context: .
dockerfile: Dockerfile-frontend
deploy:
mode: replicated
replicas: 3
labels:
- "traefik.http.routers.panoctagon_frontend.rule=Host(`panoctagon.com`)"
- "traefik.enable=true"
- "traefik.http.routers.panoctagon_frontend.entrypoints=websecure"
- "traefik.http.routers.panoctagon_frontend.tls.certresolver=myresolver"
volumes:
- panoctagon_data:/panoctagon/data
networks:
- jb-proxy
volumes:
letsencrypt:
panoctagon_data:
driver: local
driver_opts:
type: 'none'
o: 'bind'
device: 'data'
networks:
jb-proxy:
external: true