123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- version: '3.4'
- services:
- db:
- container_name: mysql
- image: mysql:latest
- restart: always
- ports:
- - 3306:3306
- environment:
- MYSQL_ROOT_PASSWORD: 12345678
- LANG: C.UTF-8
- TZ: Asia/Shanghai
- MYSQL_CHARSET: utf8mb4
- MYSQL_COLLATION: utf8mb4_unicode_ci
- networks:
- - db_network
- # account: admin/lyqadmin
- adminer:
- container_name: db_adminer
- image: jianboy/adminer:latest-sqlite
- build:
- context: ./deploy/adminer
- dockerfile: ./Dockerfile
- ports:
- - 8081:8080
- environment:
- ADMINER_DEFAULT_SERVER: db
- # ADMINER_DESIGN: galkaev
- volumes:
- - "..:/app:rw"
- networks:
- - db_network
- restart: unless-stopped
- depends_on:
- - db
-
- # volumes:
- # - ./postgres-data:/var/lib/postgresql/data
- # redis:
- # image: redis
- # container_name: redis
- # ports:
- # - "63799:6379"
- networks:
- db_network:
- driver: bridge
|