-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 959 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 959 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
41
42
43
services:
plugin-tests:
container_name: ${TESTS_CONTAINER_NAME}
build: .
restart: on-failure
env_file:
- .env
command: rake end2end_tests
depends_on:
mysqldb:
condition: service_healthy
postgresdb:
condition: service_healthy
mysqldb:
container_name: mysqldb
build: ./examples/authors/mysql
restart: always
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: ${DB_NAME}
MYSQL_ALLOW_EMPTY_PASSWORD: true
healthcheck:
test: "mysqladmin ping -h 127.0.0.1"
timeout: 20s
retries: 10
postgresdb:
container_name: postgresdb
build: ./examples/authors/postgresql
restart: always
ports:
- "8080:8080"
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
healthcheck:
test: "pg_isready -d tests"
timeout: 20s
retries: 10