2023-12-15 16:17:51 +08:00
|
|
|
version: "3.9"
|
|
|
|
|
|
|
|
services:
|
|
|
|
adminer:
|
|
|
|
image: adminer:4.8.1
|
|
|
|
container_name: adminer
|
|
|
|
hostname: adminer
|
|
|
|
restart: always
|
|
|
|
networks:
|
|
|
|
- db_network
|
2024-05-22 17:26:00 +08:00
|
|
|
- app_network
|
2023-12-15 16:17:51 +08:00
|
|
|
ports:
|
|
|
|
- "8080:8080"
|
|
|
|
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
|
|
|
|
|
|
|
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
|