-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
61 lines (60 loc) · 1.18 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
57
58
59
60
61
version: '3.8'
services:
redis:
container_name: redis
image: redis:alpine
volumes:
- redis-data:/data
ports:
- "6379:6379"
restart: always
deploy:
resources:
limits:
memory: 512M
reservations:
memory: 256M
blue:
container_name: blue
image: jinkonu/feelin-api:latest
pull_policy: always
expose:
- 8080
ports:
- "8081:8080"
environment:
- TZ=Asia/Seoul
- REDIS_HOST=redis
- REDIS_PORT=6379
volumes:
- ./firebase-key.json:/src/main/resources/firebase-key.json
depends_on:
- redis
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
green:
container_name: green
image: jinkonu/feelin-api:latest
pull_policy: always
expose:
- 8080
ports:
- "8082:8080"
environment:
- TZ=Asia/Seoul
- REDIS_HOST=redis
- REDIS_PORT=6379
volumes:
- ./firebase-key.json:/src/main/resources/firebase-key.json
depends_on:
- redis
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "5"
volumes:
redis-data: