-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (67 loc) · 1.41 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
services:
gateway:
build: .
ports: ["8090:8090"]
profiles: ["local"]
command: "./rasasa-gateway"
environment:
- RASASA_USER=user
- RASASA_PASS=pass
- REDIS_URL=redis://redis:6379
- SERVER_URL=http://server:8091
- READ_URL=http://read-server:8092
links:
- server
- read-server
- redis
depends_on:
- server
- read-server
- redis
develop:
watch:
- action: rebuild
path: gateway
- action: rebuild
path: client
server:
build: .
profiles: ["local"]
command: "./rasasa-server"
environment:
- SERVER_URL=http://0.0.0.0:8091
- DATABASE_URL=postgres://postgres:postgres@db:5432/rasasa
links:
- db
depends_on:
- db
develop:
watch:
- action: rebuild
path: server
read-server:
build: .
profiles: ["local"]
command: "pnpm run start:pretty"
working_dir: "/home/runner/app/read-server"
environment:
- READ_URL=http://0.0.0.0:8092
- REDIS_URL=redis://redis:6379
links:
- redis
depends_on:
- redis
develop:
watch:
- action: rebuild
path: read-server
db:
image: postgres
ports: ["15432:5432"]
environment:
- POSTGRES_DB=rasasa
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
redis:
image: redis
ports: ["16379:6379"]