-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.yaml
48 lines (42 loc) · 1.23 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
services:
database:
image: docker.io/mariadb:latest
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- ./database_data:/var/lib/mysql
ports:
- "3306"
networks:
vpcbr:
ipv4_address: 172.23.0.2
phpmyadmin:
image: docker.io/phpmyadmin/phpmyadmin
restart: unless-stopped
environment:
PMA_HOST: database
PMA_ABSOLUTE_URI: http://${HOSTNAME}/opsignpma/
volumes:
- ./config.user.inc.php:/etc/phpmyadmin/config.user.inc.php
labels:
- traefik.enable=true
- traefik.http.routers.phpmyadminopsign.rule=PathPrefix(`/opsignpma`)
- traefik.http.routers.phpmyadminopsign.middlewares=strip-phpmyadminopsign-prefix
- traefik.http.middlewares.strip-phpmyadminopsign-prefix.stripPrefix.prefixes=/opsignpma
- traefik.http.routers.phpmyadminopsign.entrypoints=web
networks:
vpcbr:
ipv4_address: 172.23.0.3
depends_on:
- database
networks:
vpcbr:
driver: bridge
ipam:
config:
- subnet: 172.23.0.0/16
- gateway: 172.23.0.1