forked from qa-apprenticeships/secure-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (36 loc) · 834 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (36 loc) · 834 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
version: '3.3'
services:
adminer:
image: adminer
restart: always
ports:
- 9100:8080
mysql:
build:
context: ./docker/mysql
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: rootpassword
healthcheck:
test: ["CMD-SHELL", "mysql --password=rootpassword --execute 'SHOW DATABASES;'"]
interval: 5s
timeout: 5s
retries: 20
ports:
- 9101:3306
postgres:
build:
context: ./docker/postgres
restart: always
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: rootpassword
POSTGRESS_DB: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 10
ports:
- 9102:5432