-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
122 lines (115 loc) · 2.42 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
122 lines (115 loc) · 2.42 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
services:
redis:
image: redis:alpine
ports:
- "6379:6379"
volumes:
- 'redis-data:/data'
networks:
- app-net
postgres:
image: postgres:14-alpine
environment:
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: ${DB_DATABASE}
volumes:
- postgres-data:/var/lib/postgresql/data
ports:
- "5433:5432"
networks:
- app-net
healthcheck:
test:
- CMD
- pg_isready
- '-q'
- '-d'
- '${DB_DATABASE}'
- '-U'
- '${DB_USERNAME}'
retries: 3
timeout: 5s
migration:
build:
context: .
target: development
command: ["pnpm", "run", "migration:run"]
env_file:
- .env
depends_on:
- postgres
networks:
- app-net
evm-listener:
container_name: evm-listener
build:
context: .
target: development
env_file:
- .env
environment:
- APP_NAME=evm-listener
- PORT=3000
command: ["pnpm", "run", "start:dev", "evm-listener"]
volumes:
- ./apps/evm-listener:/app/apps/evm-listener
- ./libs:/app/libs
depends_on:
- redis
- postgres
- migration
ports:
- "3000:3000"
networks:
- app-net
event-processor-scheduler:
container_name: event-processor-scheduler
build:
context: .
target: development
env_file:
- .env
environment:
- APP_NAME=event-processor-scheduler
- PORT=3001
command: ["pnpm", "run", "start:dev", "event-processor-scheduler"]
volumes:
- ./apps/event-processor-scheduler:/app/apps/event-processor-scheduler
- ./libs:/app/libs
depends_on:
- redis
- postgres
- migration
ports:
- "3001:3000"
networks:
- app-net
evm-transaction-processor:
container_name: evm-transaction-processor
build:
context: .
target: development
env_file:
- .env
environment:
- APP_NAME=evm-transaction-processor
- PORT=3002
command: ["pnpm", "run", "start:dev", "evm-transaction-processor"]
volumes:
- ./apps/evm-transaction-processor:/app/apps/evm-transaction-processor
- ./libs:/app/libs
depends_on:
- redis
- postgres
- migration
ports:
- "3002:3000"
networks:
- app-net
volumes:
redis-data:
postgres-data:
networks:
app-net:
driver: bridge