setup db mariadb and postgres for strapi and next
This commit is contained in:
@@ -2,11 +2,32 @@ services:
|
||||
yogastic:
|
||||
image: docker.rschneider.hu/infra/yogastic:202412282019.ae4bba3
|
||||
ports:
|
||||
- "84:80"
|
||||
db:
|
||||
image: postgres:17.2-alpine
|
||||
- "4084:80"
|
||||
strapi-db:
|
||||
image: mariadb:11.6.2
|
||||
environment:
|
||||
POSTGRES_PASSWORD: 123456
|
||||
MARIADB_ROOT_PASSWORD: strapi
|
||||
MARIADB_DATABASE: strapi
|
||||
MARIADB_USER: strapi
|
||||
MARIADB_PASSWORD: strapi
|
||||
volumes:
|
||||
- strapi-db:/var/lib/mysql
|
||||
ports:
|
||||
- "5432:5432"
|
||||
- "4011:3306"
|
||||
|
||||
nextjs-db:
|
||||
image: postgres:17
|
||||
environment:
|
||||
POSTGRES_PASSWORD: nextjs
|
||||
POSTGRES_DB: nextjs
|
||||
POSTGRES_USER: nextjs
|
||||
volumes:
|
||||
- next-db:/var/lib/postgresql/data
|
||||
ports:
|
||||
- "4012:5432"
|
||||
|
||||
|
||||
volumes:
|
||||
next-db: {}
|
||||
strapi-db: {}
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
CURRENT_DIR=$(dirname "$0")
|
||||
# build docker image
|
||||
source "${CURRENT_DIR}/build.docker.env.sh"
|
||||
PROJECT_ROOT=$(readlink -f "${CURRENT_DIR}/../../../../..")
|
||||
PROJECT_ROOT=$(readlink -f "${CURRENT_DIR}/../../../../../strapi-yoga")
|
||||
|
||||
echo "build image ${TAG} from folder ${PROJECT_ROOT}"
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
202412302206.7268184
|
||||
202501062213.bed409f
|
||||
|
||||
Reference in New Issue
Block a user