31 lines
653 B
YAML
31 lines
653 B
YAML
name: db
|
|
|
|
secrets:
|
|
MYSQL_ROOT_PASSWORD:
|
|
file: .secrets/MYSQL_ROOT_PASSWORD
|
|
MYSQL_USER_PASSWORD:
|
|
file: .secrets/MYSQL_USER_PASSWORD
|
|
|
|
services:
|
|
adminer:
|
|
image: adminer
|
|
restart: always
|
|
ports:
|
|
- 8082:8080
|
|
environment:
|
|
ADMINER_DEFAULT_SERVER: db-mariadb-1
|
|
mariadb:
|
|
image: mariadb
|
|
restart: always
|
|
secrets:
|
|
- MYSQL_ROOT_PASSWORD
|
|
- MYSQL_USER_PASSWORD
|
|
environment:
|
|
MARIADB_USER: jusemon
|
|
MARIADB_ROOT_PASSWORD_FILE: /run/secrets/MYSQL_ROOT_PASSWORD
|
|
MARIADB_PASSWORD_FILE: /run/secrets/MYSQL_USER_PASSWORD
|
|
|
|
networks:
|
|
default:
|
|
external: true
|
|
name: default-network
|