-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-west.yml
50 lines (50 loc) · 1.6 KB
/
docker-compose-west.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
version: '3.7'
services:
mlserver-west:
container_name: mlserver_west
image: santhoshcheeran/mlservicerepo:latest
environment:
- ZUULPROXYADDRESS=http://localhost:8092
- SERVER-PORT=8081
- SERVER-HOST=localhost
- REGION=west
- EUREKA-SERVER1-HOST=localhost
- EUREKA-SERVER1-PORT=8763
- EUREKA-SERVER2-HOST=localhost
- EUREKA-SERVER2-PORT=8764
- JAVA_OPTS=-Xms256m -Xmx512m
expose:
- 8081
# cannot use "8081:8081" - because the format will bind 8080 to 8080 and docker compose cannot use scale, as only one server can use this port
# https://pspdfkit.com/blog/2018/how-to-use-docker-compose-to-run-multiple-instances-of-a-service-in-development/
ports:
- 8081
depends_on:
- nginx
networks:
- ml-cloud-network-west
volumes:
- userdata: /var/www/mlservicedatadir
logging:
driver: json-file
# deploy:
# replicas: 2
# update_config:
# parallelism: 1
# delay: 10s
# restart_policy:
# condition: on-failure
# placement:
# constraints: [node.role == worker]
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/var/www/mlservicedatadir/nginx.conf
ports:
- "80:80"
networks:
ml-cloud-network-west:
external: true
volumes:
userdata:
external: true