31 lines
814 B
YAML
31 lines
814 B
YAML
|
version: '3.9'
|
||
|
|
||
|
services:
|
||
|
|
||
|
db:
|
||
|
container_name: mysql
|
||
|
image: mariadb
|
||
|
restart: always
|
||
|
command: mysqld --port=3306 --innodb-strict-mode=1 --innodb-buffer-pool-size=256M --transaction-isolation=READ-COMMITTED --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --max-connections=512 --innodb-rollback-on-timeout=OFF --innodb-lock-wait-timeout=120
|
||
|
volumes:
|
||
|
- /opt/mysql/data:/var/lib/mysql
|
||
|
- /opt/mysql/etc:/etc/mysql/conf.d
|
||
|
ports:
|
||
|
- 3306:3306
|
||
|
environment:
|
||
|
MARIADB_AUTO_UPGRADE: "1"
|
||
|
MARIADB_INITDB_SKIP_TZINFO: "1"
|
||
|
MARIADB_ROOT_PASSWORD: "password"
|
||
|
|
||
|
adminer:
|
||
|
container_name: adminer
|
||
|
image: adminer
|
||
|
restart: always
|
||
|
ports:
|
||
|
- 8086:8080
|
||
|
|
||
|
networks:
|
||
|
default:
|
||
|
name: databases
|
||
|
driver: bridge
|
||
|
external: true
|