-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
102 lines (70 loc) · 1.77 KB
/
docker-compose.dev.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
services:
db:
image: mysql:latest
restart: on-failure
ports:
- 8001:3306
env_file:
- .env
volumes:
- ./rti-db-dev:/var/lib/mysql/
- ./sql/create_db.sql:/docker-entrypoint-initdb.d/create_db.sql
networks:
- backend
# cloudflare-ddns key valid until 04/12/2024
# cloudflare-ddns:
# image: oznu/cloudflare-ddns:latest
# restart: always
# env_file:
# - .env
bot:
build:
context: .
dockerfile: ./bot/Dockerfile
target: debugger
ports:
- 5678:5678 # Debugging ports
env_file:
- .env
networks:
- backend
depends_on:
- db
restart: on-failure
volumes:
- ./debug:/debug
api:
build:
context: .
dockerfile: ./api/Dockerfile
ports:
- "8087:80"
depends_on:
- db
env_file:
- .env
labels:
- traefik.enable=true
- traefik.http.services.app.loadbalancer.server.port=80
- traefik.http.routers.app-http.entrypoints=http
- traefik.http.routers.app-http.rule=Host(`rti.alexcingolani.dev`)
- traefik.docker.network=traefik-public
- traefik.http.routers.app-https.entrypoints=https
- traefik.http.routers.app-https.rule=Host(`rti.alexcingolani.dev`)
- traefik.http.routers.app-https.tls=true
- traefik.http.routers.app-https.tls.certresolver=le
- traefik.http.middlewares.https-redirect.redirectscheme.scheme=https
- traefik.http.middlewares.https-redirect.redirectscheme.permanent=true
- traefik.routers.app-http.middlewares=https-redirect
networks:
- backend
- traefik-public
restart: on-failure
volumes:
debug:
rti-db-dev:
networks:
backend:
driver: bridge
traefik-public:
external: true