This repository was archived by the owner on Nov 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.custom.yml
65 lines (60 loc) · 1.62 KB
/
docker-compose.custom.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '3'
volumes:
codemooc-reg-db:
external: true
services:
web:
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_BASEPATH=
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.protocol=http"
- "traefik.port=5001"
- "traefik.frontend.entryPoints=http,https"
- "traefik.frontend.redirect.entryPoint=https"
- "traefik.frontend.rule=Host:codemooc.net"
restart: unless-stopped
db:
volumes:
- codemooc-reg-db:/var/lib/mysql:rw
restart: unless-stopped
timer:
build: ./src/Timer
networks:
- codemooc-reg-backend
volumes:
- ./:/code/:ro
- /var/run/docker.sock:/var/run/docker.sock:rw
env_file:
- config.env
- secret.env
restart: unless-stopped
redirect:
image: morbz/docker-web-redirect
networks:
- web
environment:
- VIRTUAL_HOST=www.codemooc.net
- REDIRECT_TARGET=codemooc.net
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.protocol=http"
- "traefik.port=80"
- "traefik.frontend.entryPoints=http,https"
- "traefik.frontend.redirect.entryPoint=https"
- "traefik.frontend.rule=Host:www.codemooc.net"
restart: unless-stopped
database-manager:
environment:
- "PMA_ABSOLUTE_URI=https://codemooc.net/phpmyadmin/"
labels:
- "traefik.enable=true"
- "traefik.docker.network=web"
- "traefik.protocol=http"
- "traefik.port=80"
- "traefik.frontend.rule=Host:codemooc.net;PathPrefixStrip:/phpmyadmin"
- "traefik.frontend.entryPoints=http,https"
- "traefik.frontend.redirect.entryPoint=https"