Adding common Mariadb stack.
This commit is contained in:
parent
d6c3f3883d
commit
aa7ad2ed64
2
mariadb-common/.env.dist
Normal file
2
mariadb-common/.env.dist
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
MYSQL_ROOT_PASSWORD=password
|
||||||
|
COMMON_DATABASE_NETWORK=database-net
|
23
mariadb-common/docker-compose.yml
Normal file
23
mariadb-common/docker-compose.yml
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
version: '3.7'
|
||||||
|
|
||||||
|
services:
|
||||||
|
mariadb-common:
|
||||||
|
image: mariadb:10
|
||||||
|
container_name: mariadb-common
|
||||||
|
env_file: .env
|
||||||
|
networks:
|
||||||
|
- db-network
|
||||||
|
ports:
|
||||||
|
- "127.0.0.1:3306:3306/tcp"
|
||||||
|
volumes:
|
||||||
|
# Database files
|
||||||
|
- mariadb-data:/var/lib/mysql
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
mariadb-data:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
db-network:
|
||||||
|
name: "${COMMON_DATABASE_NETWORK:-database-network}"
|
||||||
|
external: true
|
Loading…
Reference in a new issue