-
Notifications
You must be signed in to change notification settings - Fork 6
/
compose.yml
48 lines (46 loc) · 1.11 KB
/
compose.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
38
39
40
41
42
43
44
45
46
47
48
services:
db.mysql:
image: mariadb
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: Recipe.Service
MYSQL_TCP_PORT: 3366
ports:
- 3366:3366
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
db.postgresql:
image: postgres
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: root
POSTGRES_DB: Recipe.Service
ports:
- 5432:5432
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U root -d Recipe.Service'"]
start_period: 10s
interval: 10s
timeout: 5s
retries: 3
recipe.service:
build:
dockerfile: test/recipe/Baked.Test.Recipe.Service.Application/Dockerfile
args:
ENVIRONMENT: Production
ports:
- 5151:80
depends_on:
db.mysql:
condition: service_healthy
db.postgresql:
condition: service_healthy
links:
- db.mysql
- db.postgresql