-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.prod.yml
76 lines (75 loc) · 2.19 KB
/
docker-compose.prod.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
71
72
73
74
75
76
version: '3.1'
services:
mongo-express:
image: mongo-express
container_name: mongo-express
restart: unless-stopped
ports:
- ${MONGO_EXPRESS_PORT}:8081
environment:
- ME_CONFIG_MONGODB_ENABLE_ADMIN=${MONGODB_ENABLE_ADMIN}
- ME_CONFIG_MONGODB_AUTH_DATABASE=${MONGODB_DATABASE}
- ME_CONFIG_BASICAUTH_USERNAME=${MONGO_EXPRESS_USERNAME}
- ME_CONFIG_BASICAUTH_PASSWORD=${MONGO_EXPRESS_PASSWORD}
- ME_CONFIG_MONGODB_ADMINUSERNAME=${MONGODB_ROOT_USERNAME}
- ME_CONFIG_MONGODB_ADMINPASSWORD=${MONGODB_ROOT_PASSWORD}
- ME_CONFIG_MONGODB_SERVER=${MONGODB_SERVER}
- ME_CONFIG_SITE_BASEURL=${MONGO_EXPRESS_SITE_BASEURL}
networks:
- food_prod_api
foodprod:
container_name: food-prod
build:
context: .
dockerfile: ./dockerfiles/Dockerfile-prod
image: food-prod-api
env_file:
- ./env/.prod.env
volumes:
- .:/app # create volumn in current directory of container
- /app/node_modules # anonymus/unnamed volumn in container
ports:
- "${APP_PORT}:${APP_PORT}"
depends_on:
esProdFood01:
condition: service_started
restart: unless-stopped
networks:
- food_prod_api
esProdFood01:
container_name: esProdFood01
image: docker.elastic.co/elasticsearch/elasticsearch:${ELK_VERSION}
env_file:
- ./env/.prod.env
volumes:
- ./esProdFoodData01:/usr/share/elasticsearch/data
ports:
- ${ES_HOST_PORT}:9200
ulimits:
memlock:
soft: -1
hard: -1
networks:
- food_prod_api
kibana:
container_name: kibana
image: docker.elastic.co/kibana/kibana:${ELK_VERSION}
environment:
- ELASTICSEARCH_HOSTS=${ELASTICSEARCH_HOSTS}
- ELASTICSEARCH_USERNAME=${ELASTICSEARCH_USERNAME}
- ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD}
- SERVER_PUBLICBASEURL=${KIBANA_PUBLICBASEURL}
- SERVER_BASEPATH=${KIBANA_BASEPATH}
- SERVER_REWRITEBASEPATH=${KIBANA_REWRITEBASEPATH}
ports:
- ${KIBANA_HOST_PORT}:5601
depends_on:
esProdFood01:
condition: service_started
networks:
- food_prod_api
networks:
food_prod_api:
driver: bridge
volumes:
esProdFoodData01: