-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
78 lines (74 loc) · 1.93 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
services:
nats:
image: docker.io/library/nats:2-alpine@sha256:2c19fe5c950ed2ea9e8c9d1f16d89d2f4a2595e51fa0d3ac37d8c537be30aec9
environment:
# Only here so refs can be bound
_1: &NATS_USER 'reMarkable-HyperCards'
_2: &NATS_PASS 'iQ9KE4XNiq9XmCmGbbyjsQ7KP9DMHXL6yLGeFHfj'
command:
- --user
- *NATS_USER
- --pass
- *NATS_PASS
- -m
- '8222'
- -DVV
# ports:
# - '127.0.0.1:4222:4222'
# - '127.0.0.1:6222:6222'
# - '127.0.0.1:8222:8222'
redis:
image: docker.io/library/redis:5-alpine@sha256:1a3c609295332f1ce603948142a132656c92a08149d7096e203058533c415b8c
environment:
# Only here so refs can be bound
_1: &REDIS_HOST 'redis'
_2: &REDIS_PORT '6379'
_3: &REDIS_PASSWORD '' # default
_4: &REDIS_DB '0' # default
volumes:
- ./redis/redis.conf:/etc/redis/redis.conf:ro
command: redis-server /etc/redis/redis.conf
# ports:
# - '127.0.0.1:6379:6379'
http-server:
depends_on:
- redis
build:
context: ./whiteboard-server/
target: http-server
image: http-server
hostname: http-server
container_name: http-server
restart: unless-stopped
environment:
PORT: '18888'
PATH_PREFIX: /s
REDIS_HOST: *REDIS_HOST
REDIS_PORT: *REDIS_PORT
REDIS_PASSWORD: *REDIS_PASSWORD
REDIS_DB: *REDIS_DB
ports:
- '18888:18888'
grpc-server:
depends_on:
- nats
- redis
build:
context: ./whiteboard-server/
target: grpc-server
image: grpc-server
hostname: grpc-server
container_name: grpc-server
restart: unless-stopped
environment:
PORT: '10000'
NATS_USER: *NATS_USER
NATS_PASS: *NATS_PASS
REDIS_HOST: *REDIS_HOST
REDIS_PORT: *REDIS_PORT
REDIS_PASSWORD: *REDIS_PASSWORD
REDIS_DB: *REDIS_DB
GRPC_GO_LOG_SEVERITY_LEVEL: info
GRPC_GO_LOG_VERBOSITY_LEVEL: 99
ports:
- '10000:10000'