add mariadb
This commit is contained in:
parent
c2734fdabc
commit
87e95bc61d
42
nuc/mariadb/docker-compose.yml
Normal file
42
nuc/mariadb/docker-compose.yml
Normal file
@ -0,0 +1,42 @@
|
||||
---
|
||||
|
||||
services:
|
||||
mariadb:
|
||||
image: mariadb
|
||||
restart: always
|
||||
container_name: mariadb
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
|
||||
|
||||
ports:
|
||||
- 3306:3306/tcp
|
||||
|
||||
volumes:
|
||||
- mariadb_data:/var/lib/mysql
|
||||
|
||||
networks:
|
||||
- default
|
||||
|
||||
|
||||
adminer:
|
||||
image: adminer
|
||||
restart: always
|
||||
container_name: adminer
|
||||
|
||||
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.services.adminer.loadbalancer.server.port=8080"
|
||||
|
||||
networks:
|
||||
- web
|
||||
- default
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
|
||||
|
||||
volumes:
|
||||
mariadb_data:
|
||||
external: true
|
Loading…
x
Reference in New Issue
Block a user