-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.test.yml
37 lines (34 loc) · 1.03 KB
/
docker-compose.test.yml
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
version: '3.8'
services:
notifier_without_db:
image: notifier:test
build:
context: .
dockerfile: ./Dockerfile
target: test
command: "--notifier-config config/config.toml --notifier-auth config/auth.compose.toml -m 'not needs_database' ${PYTEST_ARGS-}"
notifier:
extends: notifier_without_db
command: "--notifier-config config/config.toml --notifier-auth config/auth.compose.toml ${PYTEST_ARGS-}"
links:
- database
depends_on:
database:
condition: service_healthy
database:
image: mysql:8.0.33
command: --default-authentication-plugin=mysql_native_password
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD-root}
MYSQL_DATABASE: ${MYSQL_DATABASE-wikidot_notifier_test}
MYSQL_USER: 'notifier'
MYSQL_PASSWORD: 'notifier'
MYSQL_ROOT_HOST: '0.0.0.0'
healthcheck:
test: ["CMD", "mysqladmin" ,"status", "-uroot", "-proot"]
interval: 3s
timeout: 3s
retries: 10
start_period: 20s