-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathdocker-compose.yaml
53 lines (49 loc) · 1.15 KB
/
docker-compose.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
43
44
45
46
47
48
49
50
51
52
53
---
version: "3.0"
services:
logto-mariadb:
image: mariadb:latest
container_name: logto-mariadb
networks:
- laravel-log-to-db-testing
environment:
MYSQL_DATABASE: 'logtodb'
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
logto-mongodb:
image: mongo:latest
container_name: logto-mongodb
networks:
- laravel-log-to-db-testing
php8:
build:
dockerfile: ./docker/php8/Dockerfile
container_name: laravel-log-to-db-php8
tty: true
networks:
- laravel-log-to-db-testing
volumes:
- .:/var/testing
depends_on:
- logto-mariadb
- logto-mongodb
environment:
WAIT_HOSTS: logto-mariadb:3306, logto-mongodb:27017
DB_CONNECTION: mysql
DB_HOST: logto-mariadb
DB_PORT: 3306
DB_DATABASE: logtodb
DB_USERNAME: root
DB_PASSWORD: root
MDB_DATABASE: logtodb
MDB_HOST: logto-mongodb
MDB_PORT: 27017
entrypoint: bash -c "
/wait &&
cd /var/testing &&
composer install --no-interaction &&
./vendor/bin/phpunit
"
networks:
laravel-log-to-db-testing:
driver: bridge