-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.dev.yml
62 lines (62 loc) · 1.57 KB
/
docker-compose.dev.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
version: "3.8"
services:
next-client:
build:
context: .
dockerfile: ./dockerfiles/client.dev.Dockerfile
ports:
- 3000:3000
volumes:
- ./packages/client:/app/packages/client
- ./packages/common:/app/packages/common
node-server:
depends_on:
- postgres
- redis
build:
context: .
dockerfile: ./dockerfiles/server.dev.Dockerfile
env_file:
- .env
ports:
- 8080:8080
volumes:
- ./packages/server:/app/packages/server
- ./packages/common:/app/packages/common
- ./node_modules:/app/node_modules
toxiproxy:
depends_on:
- node-server
image: ghcr.io/shopify/toxiproxy
ports:
- "8474:8474"
- "26379:26379"
toxiproxy-config:
depends_on:
- toxiproxy
image: shopify/toxiproxy
entrypoint: >
sh -c "/go/bin/toxiproxy-cli -h toxiproxy:8474 create lucella_test_nodeserver_main --listen 0.0.0.0:26379 --upstream node-server:8080;
/go/bin/toxiproxy-cli -h toxiproxy:8474 toxic add --type latency --toxicName latency_with_jitter --attribute jitter=50 --attribute latency=500 lucella_test_nodeserver_main;"
postgres:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data
env_file:
- .env
environment:
- POSTGRES_USER:${POSTGRES_USER}
- POSTGRES_PASSWORD:${POSTGRES_PASSWORD}
- POSTGRES_DB:${POSTGRES_DB}
ports:
- 5432:5432
redis:
image: redis:latest
container_name: redis
ports:
- 6379:6379
volumes:
- redis:/data
volumes:
postgres_data:
redis: