-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
33 lines (33 loc) · 985 Bytes
/
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
version: '3.3'
services:
discovery:
build: ./discovery
restart: always
container_name: fileservicediscovery
hostname: fileservicediscovery
ports:
- 8761:8761
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: 'http://discovery:8761/eureka'
server:
build: ./server
restart: always
hostname: fileserviceserver1
deploy:
mode: replicated
replicas: 2
volumes:
- ./uploads:/uploads
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: 'http://fileservicediscovery:8761/eureka'
EUREKA_URI: 'http://fileservicediscovery:8761/eureka'
depends_on:
- discovery
client:
build: ./client
restart: always
hostname: fileserviceclient
environment:
EUREKA_CLIENT_SERVICEURL_DEFAULTZONE: 'http://fileservicediscovery:8761/eureka'
depends_on:
- server