-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
30 lines (30 loc) · 882 Bytes
/
docker-compose.yml
File metadata and controls
30 lines (30 loc) · 882 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
services:
mysql:
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database_app_test
MYSQL_USER: app
MYSQL_PASSWORD: secret
ports:
- "3306:3306"
volumes:
- ./mysql-init.sql:/docker-entrypoint-initdb.d/init.sql
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "--silent" ]
interval: 5s
timeout: 5s
retries: 10
db:
image: postgres:17
environment:
POSTGRES_DB: database_app_test
POSTGRES_USER: app
POSTGRES_PASSWORD: secret
ports:
- "15432:5432"
healthcheck:
test: [ "CMD", "pg_isready", "-U", "app", "-d", "database_app_test" ]
interval: 5s
timeout: 5s
retries: 10