-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
46 lines (43 loc) · 983 Bytes
/
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
# docker-compose.yml
version: "2.4"
volumes:
db_data:
services:
mysql:
container_name: event_updater_mysql
build:
context: ./db/
dockerfile: Dockerfile
restart: always
ports:
- '3306:3306'
volumes:
- db_data:/var/lib/mysql
event_updater_serevice:
container_name: event_updater_serevice
depends_on:
mysql:
condition: service_healthy
build:
context: .
dockerfile: Dockerfile
target: dev
args:
- NPM_TOKEN=$NPM_TOKEN
ports:
- 8175:8175
environment:
- ENVIRONMENT=yap-local
- MICROSERVICE_NAME=Event-Updater
- MICROSERVICE_TYPE=com.yapsody.event-updater
- MICROSERVICE_IP=0.0.0.0
- APP_HOST=0.0.0.0
- APP_PORT=8175
- SWAGGER_PORT=8175
- MYSQL_HOST=mysql
- MYSQL_USERNAME=user
- MYSQL_PASSWORD=secret
- MYSQL_DB_NAME=event_discovery
volumes:
- .:/app:delegated
- ./:/home/node/app