-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
70 lines (67 loc) · 1.92 KB
/
docker-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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
services:
api:
depends_on:
- database
container_name: restaurant_api
build:
context: ./
dockerfile: src/FIAP.TechChallenge.ByteMeBurger.Api/Dockerfile
tags:
- techchallenge/restaurant_api
restart: always
healthcheck:
test: curl --fail http://localhost:8080/health || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 5s
networks:
- tech-challenge
ports:
- 8080:8080
environment:
- ConnectionStrings__MySql=Server=database;Database=${MYSQL_DATABASE};Uid=${MYSQL_USERID};Pwd=${MYSQL_PASSWORD};Port=${MYSQL_PORT}
- ASPNETCORE_ENVIRONMENT=Development
- Serilog__WriteTo__2__Args__serverUrl=http://seq:5341
- Serilog__Enrich__0=FromLogContext
- MercadoPago__WebhookSecret=${MercadoPago_WebhookSecret}
- MercadoPago__AccessToken=${MercadoPago_AccessToken}
- MercadoPago__NotificationUrl=${MercadoPago_NotificationUrl}
- HybridCache__Expiration=${HybridCache_Expiration}
- HybridCache__LocalCacheExpiration=${HybridCache_LocalCacheExpiration}
- HybridCache__Flags=${HybridCache_Flags}
database:
container_name: restaurant_db
build:
context: ./database
dockerfile: Dockerfile
tags:
- techchallenge/restaurant_db
restart: always
environment:
- MYSQL_ROOT_PASSWORD=admin
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USERID}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
ports:
- 3306:3306
networks:
- tech-challenge
# adminer:
# image: adminer
# restart: always
# ports:
# - 27017:27017
seq:
image: datalust/seq:latest
container_name: seq
environment:
- ACCEPT_EULA=Y
ports:
- 5341:5341
- 8081:80
networks:
- tech-challenge
networks:
tech-challenge:
driver: bridge