-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
54 lines (47 loc) · 1.38 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
44
45
46
47
48
49
50
51
52
53
54
version: '3.8'
services:
hibiscus-server:
container_name: hibiscus-server
restart: always
image: iari/hibiscus-server:2.10.9
volumes:
- hibiscus_cfg:/opt/hibiscus-server/cfg
- jameica_data:/root/.jameica
networks:
proxy:
environment:
HIBISCUS_PASSWORD: mySecretPassword
labels:
- "traefik.enable=true"
- "traefik.http.routers.hibiscus.entrypoints=https"
- "traefik.http.routers.hibiscus.rule=Host(`hibiscus.myfancydomain.finance`)"
- "traefik.http.services.hibiscus.loadbalancer.server.port=8080"
hibiscus-mariadb:
container_name: "hibiscus-mariadb"
image: "mariadb:latest"
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
restart: always
volumes:
- "hibiscus-db:/var/lib/mysql"
environment:
- "MYSQL_ROOT_PASSWORD=mySecretRootPw"
- "MYSQL_DATABASE=hibiscus"
- "MYSQL_USER=hibiscus"
- "MYSQL_PASSWORD=hibiscus"
networks:
proxy:
labels:
- "traefik.enable=true"
- "traefik.tcp.routers.hibiscusdb.entrypoints=mariadb"
- "traefik.tcp.routers.hibiscusdb.rule=HostSNI(`*`)"
- "traefik.tcp.routers.hibiscusdb.service=hibiscusdb"
- "traefik.tcp.services.hibiscusdb.loadbalancer.server.port=3306"
volumes:
hibiscus-db:
hibiscus_cfg:
jameica_data:
networks:
proxy:
external: true