-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
90 lines (83 loc) · 2.08 KB
/
docker-compose.yml
File metadata and controls
90 lines (83 loc) · 2.08 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
x-node-base: &node-base
image: node:22-alpine
user: node
working_dir: /workspace
volumes:
- .:/workspace
services:
init:
<<: *node-base
command: sh -c "corepack yarn && corepack yarn build"
packages:
<<: *node-base
command: sh -c "corepack yarn turbo run dev --filter='@shapeshift/shared-types' --filter='@shapeshift/shared-utils'"
depends_on:
init:
condition: service_completed_successfully
user-service:
<<: *node-base
working_dir: /workspace/apps/user-service
command: sh -c "corepack yarn db:push && corepack yarn start:dev"
ports:
- "3002:3002"
env_file:
- ./apps/user-service/.env
environment:
- NODE_ENV=development
- PORT=3002
depends_on:
packages:
condition: service_started
db:
condition: service_healthy
swap-service:
<<: *node-base
working_dir: /workspace/apps/swap-service
command: sh -c "corepack yarn db:push && corepack yarn start:dev"
ports:
- "3001:3001"
env_file:
- ./apps/swap-service/.env
environment:
- NODE_ENV=development
- PORT=3001
depends_on:
packages:
condition: service_started
db:
condition: service_healthy
notifications-service:
<<: *node-base
working_dir: /workspace/apps/notifications-service
command: sh -c "corepack yarn db:push && corepack yarn start:dev"
ports:
- "3003:3003"
env_file:
- ./apps/notifications-service/.env
environment:
- NODE_ENV=development
- PORT=3003
depends_on:
packages:
condition: service_started
user-service:
condition: service_started
db:
condition: service_healthy
db:
image: postgres:15-alpine
environment:
- POSTGRES_DB=microservices
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
volumes:
db_data: