forked from strapi/strapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
40 lines (38 loc) 路 823 Bytes
/
Copy pathdocker-compose.test.yml
File metadata and controls
40 lines (38 loc) 路 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
services:
postgres:
image: postgres
restart: always
volumes:
- pgdata_test:/var/lib/postgresql
environment:
POSTGRES_USER: strapi
POSTGRES_PASSWORD: strapi
POSTGRES_DB: strapi_test
healthcheck:
test: ['CMD-SHELL', 'pg_isready']
interval: 10s
timeout: 5s
retries: 5
ports:
- '5432:5432'
mysql:
image: mysql:8
restart: always
environment:
MYSQL_DATABASE: strapi_test
MYSQL_USER: strapi
MYSQL_PASSWORD: strapi
MYSQL_ROOT_HOST: '%'
MYSQL_ROOT_PASSWORD: strapi
volumes:
- mysqldata_test:/var/lib/mysql
healthcheck:
test: ['CMD-SHELL', 'mysqladmin ping']
interval: 10s
timeout: 5s
retries: 3
ports:
- '3306:3306'
volumes:
pgdata_test:
mysqldata_test: