mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-11-07 08:54:04 +01:00
Merge pull request #124 from ChristianLempa:108-update-mariadb-deployment-template
updated mariadb compose
This commit is contained in:
commit
010eba0d89
@ -9,6 +9,7 @@ services:
|
||||
influxdb:
|
||||
container_name: influxdb
|
||||
image: influxdb:2.7.1-alpine
|
||||
# (Optional) remove this section when using traefik
|
||||
ports:
|
||||
- '8086:8086'
|
||||
volumes:
|
||||
|
@ -1,15 +1,29 @@
|
||||
---
|
||||
# (Optional) when using custom network
|
||||
# networks:
|
||||
# yournetwork:
|
||||
# external: true
|
||||
volumes:
|
||||
mariadb-data:
|
||||
services:
|
||||
mariadb:
|
||||
container_name: mariadb
|
||||
container_name: mariadb:11.1.2
|
||||
image: mariadb:latest
|
||||
# (Optional) Expose Container outside
|
||||
# ports:
|
||||
# - 3306:3306
|
||||
# (Optional) remove this section when you don't want to expose
|
||||
ports:
|
||||
- 3306:3306
|
||||
environment:
|
||||
MARIADB_ROOT_PASSWORD: your-root-password
|
||||
# (Optional) remove this section, when using random, or empty root password
|
||||
- MARIADB_ROOT_PASSWORD=your-root-password
|
||||
# (Optional) when using random, or empty root password
|
||||
# - MARIADB_RANDOM_ROOT_PASSWORD=true
|
||||
# - MARIADB_ALLOW_EMPTY_ROOT_PASSWORD=true
|
||||
- MARIADB_DATABASE=your-database
|
||||
- MARIADB_USER=your-user
|
||||
- MARIADB_PASSWORD=your-password
|
||||
volumes:
|
||||
- mariadb-data:/var/lib/mysql
|
||||
restart: unless-stopped
|
||||
# (Optional) when using custom network
|
||||
# networks:
|
||||
# - yournetwork
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user