-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
executable file
·108 lines (108 loc) · 2.7 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.4"
services:
image_search_python:
restart: always
build:
context: ./
dockerfile: "dockerfile/python-dockerfile-prod"
environment:
- "PYTHONUNBUFFERED=1"
- NVIDIA_VISIBLE_DEVICES=0
volumes:
- .:/app
- ./var/.keras:/root/.keras
networks:
- image_search
image_search_telegram_bot_python:
restart: always
build:
context: ./
dockerfile: "dockerfile/python-telegram-bot-dockerfile-prod"
environment:
- "PYTHONUNBUFFERED=1"
volumes:
- ./telegram_bot:/app
networks:
- image_search
image_search_nginx:
restart: always
build: ./nginx
ports:
- "${DOCKER_WEB_PORT}:80"
- "${DOCKER_WEB_SSL_PORT}:443"
volumes:
- .:/app
- ./nginx/letsencrypt:/etc/letsencrypt
depends_on:
- image_search_python
- image_search_node
networks:
- image_search
command: "/bin/sh -c 'while :; do sleep 24h & wait $${!}; certbot renew; nginx -s reload; done & nginx -g \"daemon off;\"'"
image_search_milvus:
image: milvusdb/milvus:1.1.1-cpu-d061621-330cc6
volumes:
- ./var/milvus/db:/var/lib/milvus/db
- ./milvus_config:/var/lib/milvus/conf
- ./var/milvus/logs:/var/lib/milvus/logs
- ./var/milvus/wal:/var/lib/milvus/wal
networks:
- image_search
depends_on:
- image_search_python
image_search_elastic:
restart: always
image: docker.elastic.co/elasticsearch/elasticsearch:${DOCKER_ELASTICSEARCH_VERSION}
volumes:
- ./var/elasticsearch:/usr/share/elasticsearch/data
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms2g -Xmx2g"
- bootstrap.memory_lock=true
ulimits:
memlock:
soft: -1
hard: -1
networks:
- image_search
depends_on:
- image_search_python
image_search_node:
build:
context: ./
dockerfile: dockerfile/node-dockerfile
working_dir: /app
ports:
- "${NODEJS_PORT}"
volumes:
- .:/app
networks:
- image_search
image_search_mysql:
image: mysql:8.0.17
environment:
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
networks:
- image_search
image_search_redis:
restart: always
image: redis:latest
networks:
- image_search
volumes:
- ./var/redis:/data
image_search_tensorflow_serving:
restart: always
image: tensorflow/serving
networks:
- image_search
volumes:
- ./tanukai_model:/models/tanukai_model/1
environment:
- "MODEL_NAME=tanukai_model"
networks:
image_search:
driver: "bridge"