forked from mwang87/NP-Classifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (46 loc) · 1.16 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
version: '3'
services:
npclassifier-dash:
build:
context: .
dockerfile: Dockerfile
container_name: npclassifier-dash
volumes:
- ./output:/app/output:rw
- ./logs:/app/logs:rw
- ./data:/data:rw
ports:
- "6541:5000"
networks:
- default
- nginx-net
environment:
#VIRTUAL_HOST: npclassifier.ucsd.edu,npclassifier.gnps2.org
VIRTUAL_HOST: npclassifier.gnps2.org
VIRTUAL_PORT: 5000
#LETSENCRYPT_HOST: npclassifier.ucsd.edu,npclassifier.gnps2.org
LETSENCRYPT_HOST: npclassifier.gnps2.org
LETSENCRYPT_EMAIL: mwang87@gmail.com
restart: on-failure
command: /app/run_server.sh
deploy:
resources:
limits:
memory: 16000M
npclassifier-tf-server:
image: tensorflow/serving:2.3.0
volumes:
- ./Classifier/models_folder/models:/models
- ./Classifier/models_folder/models.config:/models/models.config
restart: on-failure
networks:
- default
command: --model_config_file=/models/models.config
deploy:
resources:
limits:
memory: 16000M
networks:
nginx-net:
external:
name: nginx-net