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: {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user