-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (77 loc) · 1.52 KB
/
docker-compose.yml
File metadata and controls
81 lines (77 loc) · 1.52 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
services:
redis:
image: redis:7-alpine
container_name: bulletonrails_redis
command: >
redis-server
--save ""
--appendonly no
--maxmemory 25mb
--maxmemory-policy allkeys-lru
--tcp-backlog 511
--tcp-keepalive 60
networks:
- backend
deploy:
resources:
limits:
cpus: '0.1'
memory: '30MB'
restart: unless-stopped
backend-1:
build: .
environment:
SERVER_PORT: 8085
SPRING_PROFILES_ACTIVE: production
REDIS_HOST: redis
depends_on:
- redis
networks:
- backend
- payment-processor
deploy:
resources:
limits:
cpus: '0.6'
memory: '150MB'
restart: unless-stopped
backend-2:
build: .
environment:
SERVER_PORT: 8085
SPRING_PROFILES_ACTIVE: production
REDIS_HOST: redis
depends_on:
- redis
networks:
- backend
- payment-processor
deploy:
resources:
limits:
cpus: '0.6'
memory: '150MB'
restart: unless-stopped
load-balancer:
image: nginx:alpine
container_name: bulletonrails_load-balancer
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- backend-1
- backend-2
ports:
- "9999:80"
networks:
- backend
deploy:
resources:
limits:
cpus: "0.2"
memory: "20MB"
restart: unless-stopped
networks:
backend:
driver: bridge
payment-processor:
external: true