-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
80 lines (71 loc) · 1.46 KB
/
docker-compose.yml
File metadata and controls
80 lines (71 loc) · 1.46 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
version: '3'
services:
# rabbitmq:
# image: rabbitmq:3.12.12-alpine
# networks:
# - api-rate-limiter
rabbitmq:
image: rabbitmq:3-management-alpine
container_name: 'rabbitmq'
ports:
- 15672:15672
volumes:
- ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
- ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
networks:
- api-rate-limiter
express-api:
depends_on:
- rabbitmq
build:
context: express-api
dockerfile: Dockerfile
networks:
- api-rate-limiter
redis:
container_name: 'redis'
image: redis:7.0.15-alpine
volumes:
- redis:/data
networks:
- api-rate-limiter
worker:
container_name: 'worker'
depends_on:
- redis
build:
context: worker
dockerfile: Dockerfile
volumes:
- go_rate_limiter_config:/config
networks:
- api-rate-limiter
go-rate-limiter:
container_name: 'go-rate-limiter'
depends_on:
- redis
- rabbitmq
- worker
build:
context: go-rate-limiter
dockerfile: Dockerfile
networks:
- api-rate-limiter
nginx-config:
container_name: 'nginx-config'
depends_on:
- express-api
- go-rate-limiter
build:
context: nginx-config
dockerfile: Dockerfile
networks:
- api-rate-limiter
ports:
- "80:80"
networks:
api-rate-limiter:
volumes:
redis:
go_rate_limiter_config:
external: true