-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.wizard.yml
More file actions
81 lines (72 loc) · 2.82 KB
/
docker-compose.wizard.yml
File metadata and controls
81 lines (72 loc) · 2.82 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
version: '3.1'
services:
wizard_mongo:
env_file:
- .env
container_name: ${WIZARD_MONGO_CONTAINER_NAME}
restart: always
build:
context: .
dockerfile: Dockerfile.init_mongo
environment:
MONGO_INITDB_ROOT_USERNAME: ${WIZARD_MONGODB_ROOT_USERNAME}
MONGO_INITDB_ROOT_PASSWORD: ${WIZARD_MONGODB_ROOT_PASSWORD}
MONGO_INITDB_DATABASE: ${WIZARD_MONGODB_DATABASE}
volumes:
- mongodevdata:/data/db
networks:
mongo:
aliases:
- mongodb
wizard_backend:
env_file:
- .env
container_name: ${WIZARD_BACKEND_CONTAINER_NAME}
image: docker.pkg.github.com/histographer/wizard-backend/wizard-backend:prod
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.wizard-backend.rule=Host(`${WIZARD_BACKEND_URL}`)'
- 'traefik.http.routers.wizard-backend.entrypoints=web'
- 'traefik.http.routers.wizard-backend.middlewares=cors'
- "traefik.http.routers.wizard-backend.middlewares=redirect@file" # <== This is a middleware to redirect to https
- "traefik.http.routers.wizard-backend-secured.rule=Host(`${WIZARD_BACKEND_URL}`)" # <== Your Domain Name for the https rule
- "traefik.http.routers.wizard-backend-secured.entrypoints=web-secured" # <== Defining entrypoint for https
- "traefik.http.routers.wizard-backend-secured.tls.certresolver=mytlschallenge" # <== Defining certsresolvers for https
- 'traefik.http.routers.wizard-backend-secured.middlewares=cors'
restart: always
environment:
WIZARD_MONGODB_HOST: ${WIZARD_MONGO_CONTAINER_NAME}
networks:
mongo:
aliases:
- wizard-backend
traefik:
digipat-frontend:
env_file:
- '.env'
restart: always
image: 'docker.pkg.github.com/histographer/wizard-frontend/wizard-frontend:prod'
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.digipat-frontend.rule=Host(`${CORE_URL}`)'
- 'traefik.http.routers.digipat-frontend.entrypoints=web'
- 'traefik.http.routers.digipat-frontend.middlewares=cors'
- "traefik.http.routers.digipat-frontend.middlewares=redirect@file" # <== This is a middleware to redirect to https
- 'traefik.http.routers.digipat-frontend-secured.middlewares=cors'
- 'traefik.http.routers.digipat-frontend-secured.rule=Host(`${CORE_URL}`)'
- "traefik.http.routers.digipat-frontend-secured.entrypoints=web-secured" # <== Defining entrypoint for https
- "traefik.http.routers.digipat-frontend-secured.tls.certresolver=mytlschallenge" # <== Defining certsresolvers for https
networks:
traefik:
aliases:
- digipat-frontend
volumes:
- '${IMS_BUFFER_PATH_HOST}:/tmp/uploaded'
expose:
- '80'
networks:
traefik:
external: true
mongo:
volumes:
mongodevdata: