-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yaml
More file actions
87 lines (87 loc) · 1.95 KB
/
docker-compose.dev.yaml
File metadata and controls
87 lines (87 loc) · 1.95 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
82
83
84
85
86
87
x-service-templates:
solution: &base
build:
context: solution
dockerfile: Dockerfile
restart: "unless-stopped"
networks:
- payment-proxy
- payment-processor
environment:
- APP_PORT=${APP_PORT}
- REDIS_HOST=${REDIS_HOST}
- REDIS_PORT=${REDIS_PORT}
- PROCESSOR_DEFAULT_URL=${PROCESSOR_DEFAULT_URL}
- PROCESSOR_FALLBACK_URL=${PROCESSOR_FALLBACK_URL}
services:
payment-proxy-api-1:
<<: *base
container_name: payment-proxy-api-1
hostname: payment-proxy-api-1
command: php http/entrypoint.php
depends_on:
- redis
- payment-proxy-worker-payments
deploy:
resources:
limits:
cpus: "0.30"
memory: "70MB"
payment-proxy-api-2:
<<: *base
container_name: payment-proxy-api-2
hostname: payment-proxy-api-2
command: php http/entrypoint.php
depends_on:
- redis
- payment-proxy-worker-payments
deploy:
resources:
limits:
cpus: "0.30"
memory: "70MB"
redis:
image: redis:latest
networks:
- payment-proxy
- payment-processor
restart: "unless-stopped"
deploy:
resources:
limits:
cpus: "0.30"
memory: "100MB"
payment-proxy-worker-payments:
<<: *base
container_name: payment-proxy-worker-payments
command: php workers/payments/index.php
depends_on:
- redis
deploy:
resources:
limits:
cpus: "0.40"
memory: "90MB"
nginx:
image: nginx:latest
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
ports:
- 9999:9999
depends_on:
- payment-proxy-api-1
- payment-proxy-api-2
networks:
- payment-proxy
- payment-processor
restart: "unless-stopped"
deploy:
resources:
limits:
cpus: "0.20"
memory: "20MB"
networks:
payment-proxy:
driver: bridge
payment-processor:
external: true