-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.testing.yaml
56 lines (53 loc) · 1.46 KB
/
compose.testing.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
54
55
services:
server-testing:
build:
context: .
secrets:
- db-password
target: dev
ports:
- 1501:80
- 0:22
depends_on:
db-testing:
condition: service_healthy
secrets:
- db-password
environment:
- DB_PASSWORD_FILE=/run/secrets/db-password
- DB_HOST=db-testing
- DB_PORT=3306
- DB_DATABASE=db_testing
- DB_USERNAME=root
- APP_ENV=testing
- APP_MAINTENANCE_DRIVER=file
- BCRYPT_ROUNDS=4
- CACHE_STORE=file
- MAIL_MAILER=array
- PULSE_ENABLED=false
- QUEUE_CONNECTION=sync
- SESSION_DRIVER=array
- TELESCOPE_ENABLED=false
db-testing:
image: mariadb
restart: always
user: root
secrets:
- db-password
volumes:
- db-data-testing:/var/lib/mysql
environment:
- MARIADB_ROOT_PASSWORD_FILE=/run/secrets/db-password
- MARIADB_DATABASE=db_testing
expose:
- 3306
healthcheck:
test: [ "CMD", "/usr/local/bin/healthcheck.sh", "--su-mysql", "--connect", "--innodb_initialized" ]
interval: 10s
timeout: 5s
retries: 5
volumes:
db-data-testing:
secrets:
db-password:
file: database/password.txt