-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
127 lines (118 loc) · 3.45 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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
---
version: "3.7"
networks:
koala:
external: true
volumes:
koala-mariadb-107:
driver: local
koala-postgres-11:
driver: local
koala-redis-7:
driver: local
koala-mysql-8:
driver: local
services:
traefik:
image: traefik:v3.0
container_name: koala-traefik
networks:
- koala
command:
- "--log.level=DEBUG"
- "--api.insecure=true"
- "--accessLog=true"
- "--providers.docker=true"
- "--providers.docker.watch=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.websecure.address=:443"
- "--providers.file.directory=/certs.conf.d/"
- "--providers.file.watch=true"
ports:
- "${KOALA_HTTP_PORT}:80"
- "${KOALA_HTTPS_PORT}:443"
- "${KOALA_TRAEFIK_DASHBOARD_PORT}:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "${KOALA_CERTIFICATES_PATH}/certs:/certs:ro"
- "${KOALA_CERTIFICATES_PATH}/conf.d/:/certs.conf.d/:ro"
mail:
image: schickling/mailcatcher
container_name: koala-mail
networks:
koala:
aliases:
- "mail.${KOALA_LOCAL_TLD}"
labels:
- "traefik.enable=true"
# http => https redirect
- "traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https"
- "traefik.http.routers.koala-mail-redirect.rule=Host(`mail.${KOALA_LOCAL_TLD}`)"
- "traefik.http.routers.koala-mail-redirect.entrypoints=web"
- "traefik.http.routers.koala-mail-redirect.middlewares=redirect-to-https"
# https with ssl termination
- "traefik.http.routers.koala-mail.rule=Host(`mail.${KOALA_LOCAL_TLD}`)"
- "traefik.http.routers.koala-mail.entrypoints=websecure"
- "traefik.http.routers.koala-mail.tls=true"
- "traefik.http.routers.koala-mail.service=koala-mail"
- "traefik.http.services.koala-mail.loadbalancer.server.port=1080"
ports:
- "1025:1025"
mariadb107:
image: "mariadb:10.7"
container_name: koala-mariadb107
environment:
MYSQL_ROOT_PASSWORD: password
networks:
koala:
aliases:
- mariadb107.services.docker
volumes:
- "koala-mariadb-107:/var/lib/mysql"
- "${HOME}/.koala-1.8.6/config/mariadb107/mariadb.cnf:/etc/mysql/conf.d/mariadb.cnf"
ports:
- "${KOALA_MARIADB107_PORT}:${KOALA_MARIADB107_PORT}"
mysql8:
image: mysql/mysql-server:latest
container_name: koala-mysql8
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_ROOT_HOST: '%'
networks:
koala:
aliases:
- mysql8.services.docker
volumes:
- "koala-mysql-8:/var/lib/mysql"
- "${HOME}/.koala-1.8.6/config/mysql8/my.cnf:/etc/my.cnf"
healthcheck:
test: "/healthcheck.sh"
ports:
- "${KOALA_MYSQL8_PORT}:${KOALA_MYSQL8_PORT}"
postgres11:
image: "postgres:11-alpine"
container_name: koala-postgres11
environment:
POSTGRES_PASSWORD: password
POSTGRES_USER: root
PGPORT: "${KOALA_POSTGRES11_PORT}"
networks:
koala:
aliases:
- postgres11.services.docker
volumes:
- "koala-postgres-11:/var/lib/postgresql/data"
ports:
- "${KOALA_POSTGRES11_PORT}:${KOALA_POSTGRES11_PORT}"
redis:
image: "redis:7-alpine"
container_name: koala-redis7
networks:
koala:
aliases:
- redis7.services.docker
volumes:
- "koala-redis-7:/data"
expose:
- "${KOALA_REDIS7_PORT}"