forked from TikTokTechImmersion/assignment_demo_2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
41 lines (39 loc) · 886 Bytes
/
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
version: '3.9'
services:
rpc-server:
build: rpc-server
ports:
- "8888:8888"
environment:
- SERVICE_NAME=rpc-server
- SERVICE_TAGS=rpc
depends_on:
- etcd
- rediscache
# scale: 2
http-server:
build: http-server
ports:
- "8080:8080"
environment:
- SERVICE_NAME=http-server
- SERVICE_TAGS=http
depends_on:
- etcd
- rpc-server
etcd:
image: quay.io/coreos/etcd:v3.5.0
command: ["etcd", "--advertise-client-urls", "http://etcd:2379", "--listen-client-urls", "http://0.0.0.0:2379"]
ports:
- "2379:2379"
rediscache:
image: redis:7.0-alpine
restart: always
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass Atyeyt8H91NQVR1fdwPw20xZHOLF
volumes:
- cache:/data
volumes:
cache:
driver: local