-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (51 loc) · 1.02 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
49
50
51
52
53
54
55
56
version: '2'
services:
mongodb:
image: mongo:4.0.23
ports:
- "27017:27017"
command: mongod --smallfiles
app:
build: .
expose:
- "8080"
links:
- mongodb
- redis
environment:
SURL_SERVICE_HOST: http://turkcell.s/
SPRING_REDIS_HOST: redis
SPRING_REDIS_PORT: 6379
SPRING_DATA_MONGODB_URI: mongodb://mongodb/surl
SPRING_APPLICATION_NAME: surl-service
depends_on:
- mongodb
app2:
build: .
expose:
- "8080"
links:
- mongodb
- redis
environment:
SURL_SERVICE_HOST: http://turkcell.s/
SPRING_REDIS_HOST: redis
SPRING_REDIS_PORT: 6379
SPRING_DATA_MONGODB_URI: mongodb://mongodb/surl
SPRING_APPLICATION_NAME: surl-service
depends_on:
- mongodb
nginx:
container_name: proxy-nginx
build:
context: ./nginx
dockerfile: Dockerfile
ports:
- 8080:80
depends_on:
- app
- app2
redis:
image: redis
ports:
- "6379:6379"