-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-path.yml
42 lines (39 loc) · 1.15 KB
/
docker-compose-path.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
version: '3.5'
# docker stack deploy --compose-file stack-phpmyadmin.yml phpmyadmin
volumes:
phpmyadmin_data:
mariadb_10_4:
services:
proxyv2:
image: traefik:v2.5 # The official Traefik docker image
command:
- "--api.insecure=true"
- "--providers.docker"
ports:
- "80:80" # The HTTP port
- "443:443" # The HTTP port
- "8181:8080" # The Web UI (enabled by --api)
volumes:
- /var/run/docker.sock:/var/run/docker.sock # So that Traefik can listen to the Docker events
labels:
- "traefik.enable=false"
phpmyadmin:
image: mhzawadi/phpmyadmin
volumes:
- phpmyadmin_data:/mysql
labels:
- "traefik.http.routers.phpmyadmin.rule=Path(`/pma`)"
- "traefik.http.routers.phpmyadmin.service=phpmyadmin"
- "traefik.http.services.phpmyadmin.loadbalancer.server.port=80"
mariadb_10_4:
# MySQL 5.7
image: mariadb:10.4.10
volumes:
- mariadb_10_4:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=mysql_password
- MYSQL_DATABASE=phpmyadmin
- MYSQL_USER=phpmyadmin
- MYSQL_PASSWORD=phpmyadmin
labels:
- "traefik.enable=false"