forked from Skill17-WebTechnologies/competition-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmysql.yaml
More file actions
33 lines (32 loc) · 970 Bytes
/
mysql.yaml
File metadata and controls
33 lines (32 loc) · 970 Bytes
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
services:
competitor_db:
image: mysql:8
restart: always
networks:
- default
environment:
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
volumes:
- ./data/mysql-competition:/var/lib/mysql
- "./config/mysql/competitors.sql:/docker-entrypoint-initdb.d/1.sql"
labels:
traefik.enable: "true"
traefik.http.routers.competitor-db.rule: HostRegexp(`{_:db\..*}`)
traefik.http.services.competitor-db.loadbalancer.server.port: 3306
ports:
- "3306:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin:latest
networks:
- default
depends_on:
- competitor_db
environment:
PMA_HOST: "competitor_db"
PMA_PORT: 3306
labels:
traefik.enable: "true"
traefik.http.routers.pma.rule: HostRegexp(`{_:pma\..*}`)
traefik.http.services.pma.loadbalancer.server.port: 80
traefik.http.routers.pma.tls: true
traefik.http.routers.pma.entrypoints: websecure