split data and db mountpoints

root 2021-04-17 11:17:52 +02:00
parent c6259b7027
commit de0c62eac3
4 changed files with 5 additions and 4 deletions

View File

@ -12,7 +12,7 @@ services:
]
volumes:
#- ${BUILD_ROOT_PATH}/docker/mariadb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
- ${DATA_FOLDER}/mariadb:/var/lib/mysql
- ${DB_FOLDER}/mariadb:/var/lib/mysql
environment:
#MYSQL_DATABASE: wordpress
MYSQL_ROOT_PASSWORD: ${MARIADB_PASSWORD}

View File

@ -9,7 +9,7 @@ services:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
volumes:
- ${DATA_FOLDER}/postgres:/var/lib/postgresql/data
- ${DB_FOLDER}/postgres:/var/lib/postgresql/data
- ${BUILD_ROOT_PATH}/docker/postgresql/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
networks:
- isard_net

View File

@ -4,6 +4,6 @@ services:
image: redis:6-alpine
container_name: isard-apps-redis
volumes:
- "${DATA_FOLDER}/redis:/data"
- ${DB_FOLDER}/redis:/data
networks:
- isard_net

View File

@ -4,7 +4,8 @@ DOMAIN=mydomain.com
LETSENCRYPT_DNS=
LETSENCRYPT_EMAIL=
DATA_FOLDER=/opt/isard-apps
DB_FOLDER=/opt/isard-apps/db
DATA_FOLDER=/opt/isard-apps/data
LANG=es_ES.UTF-8
LANGUAGE=es_ES:ca