-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yaml
42 lines (39 loc) · 1.04 KB
/
docker-compose.test.yaml
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
version: "3"
networks:
geo-service-test-network:
services:
geo-service-test-app:
build:
context: .
dockerfile: .docker/php/test.Dockerfile
container_name: geo-service-test-app
depends_on:
geo-service-test-db:
condition: service_healthy
links:
- geo-service-test-db
ports:
- "9002:9000"
volumes:
- .:/var/www/geo-service
- .docker/php/config/php.ini:/usr/local/etc/php/conf.d/php.ini
networks:
- geo-service-test-network
geo-service-test-db:
image: mariadb:11.3
container_name: geo-service-test-db
ports:
- "4306:3306"
healthcheck:
test: [ "CMD", "healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]
start_period: 5s
interval: 5s
timeout: 5s
retries: 3
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD:-qwerty}
MYSQL_PASSWORD: ${DB_PASSWORD:-qwerty}
MYSQL_USER: ${DB_USER:-geo-service}
MYSQL_DATABASE: ${DB_DATABASE:-geo-service}
networks:
- geo-service-test-network