docker-compose 模板
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
523 B

3 years ago
# Use root/example as user/password credentials
version: '3.1'
services:
db:
image: mariadb
restart: always
volumes:
- ./conf:/etc/mysql/conf.d
- /etc/localtime:/etc/localtime
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=example
- MYSQL_DATABASE=USER_DB_NAME #optional
- MYSQL_USER=MYSQL_USER #optional
- MYSQL_PASSWORD=DATABASE_PASSWORD #optional
adminer:
image: adminer
restart: always
ports:
- 8080:8080