mirror of
https://github.com/strapi/strapi.git
synced 2025-06-27 00:41:25 +00:00
34 lines
658 B
YAML
34 lines
658 B
YAML
![]() |
version: '3'
|
||
|
|
||
|
services:
|
||
|
postgres:
|
||
|
image: postgres
|
||
|
restart: always
|
||
|
volumes:
|
||
|
- pgdata:/var/lib/postgresql/data
|
||
|
environment:
|
||
|
POSTGRES_USER: strapi
|
||
|
POSTGRES_PASSWORD: strapi
|
||
|
POSTGRES_DB: strapi_test
|
||
|
ports:
|
||
|
- '5432:5432'
|
||
|
|
||
|
mysql:
|
||
|
image: mysql
|
||
|
restart: always
|
||
|
command: --default-authentication-plugin=mysql_native_password
|
||
|
environment:
|
||
|
MYSQL_DATABASE: strapi_test
|
||
|
MYSQL_USER: strapi
|
||
|
MYSQL_PASSWORD: strapi
|
||
|
MYSQL_ROOT_HOST: '%'
|
||
|
MYSQL_ROOT_PASSWORD: strapi
|
||
|
volumes:
|
||
|
- mysqldata:/var/lib/mysql
|
||
|
ports:
|
||
|
- '3306:3306'
|
||
|
|
||
|
volumes:
|
||
|
pgdata:
|
||
|
mysqldata:
|