2023-12-15 16:17:51 +08:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
phpmyadmin:
|
|
|
|
image: phpmyadmin:5.2.1
|
|
|
|
container_name: phpmyadmin
|
|
|
|
hostname: phpmyadmin
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- db_network
|
2024-05-22 17:26:00 +08:00
|
|
|
- app_network
|
2023-12-15 16:17:51 +08:00
|
|
|
ports:
|
|
|
|
- "80:80"
|
|
|
|
volumes:
|
2024-05-22 17:26:00 +08:00
|
|
|
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
2023-12-15 16:17:51 +08:00
|
|
|
environment:
|
|
|
|
- PMA_ARBITRARY=1
|
|
|
|
|
|
|
|
networks:
|
|
|
|
db_network:
|
|
|
|
name: db_network
|
|
|
|
external: true
|
|
|
|
# driver: bridge
|
|
|
|
# driver_opts:
|
|
|
|
# encrypted: 'true'
|
|
|
|
# ipam:
|
|
|
|
# driver: default
|
|
|
|
# config:
|
2024-05-22 17:26:00 +08:00
|
|
|
# - subnet: 10.21.22.1/24
|
|
|
|
app_network:
|
|
|
|
name: app_network
|
|
|
|
external: true
|
|
|
|
# driver: bridge
|
|
|
|
# driver_opts:
|
|
|
|
# encrypted: 'true'
|
|
|
|
# ipam:
|
|
|
|
# driver: default
|
|
|
|
# config:
|
|
|
|
# - subnet: 10.21.23.1/24
|