38 lines
700 B
YAML
38 lines
700 B
YAML
version: "3.9"
|
|
|
|
services:
|
|
adminer:
|
|
image: adminer:4.8.1
|
|
container_name: adminer
|
|
hostname: adminer
|
|
restart: always
|
|
networks:
|
|
- db_network
|
|
- app_network
|
|
ports:
|
|
- "8080:8080"
|
|
volumes:
|
|
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
|
|
|
networks:
|
|
db_network:
|
|
name: db_network
|
|
external: true
|
|
# driver: bridge
|
|
# driver_opts:
|
|
# encrypted: 'true'
|
|
# ipam:
|
|
# driver: default
|
|
# config:
|
|
# - 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
|