-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
154 lines (147 loc) · 3.89 KB
/
docker-compose.yml
File metadata and controls
154 lines (147 loc) · 3.89 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# Development Docker Compose configuration for Yeko Project
# Supports hot-reload with volume mounts for all services
networks:
yeko-network:
driver: bridge
services:
# yeko-core - TanStack Start application
yeko-core:
build:
context: .
dockerfile: apps/core/Dockerfile
container_name: yeko-core-dev
restart: unless-stopped
ports:
- '3000:3000'
volumes:
- ./apps/core:/app/apps/core:delegated
- ./packages:/app/packages:delegated
- node_modules_core:/app/node_modules
environment:
- NODE_ENV=development
- BETTER_AUTH_URL=http://localhost:3000
- APP_URL=http://localhost:3000
# DNS configuration for Neon DB access
- DNS_SERVERS=8.8.8.8,1.1.1.1
env_file:
- ./apps/core/.env
networks:
- yeko-network
# Explicit DNS for proper Neon DB resolution
dns:
- 8.8.8.8
- 1.1.1.1
# healthcheck:
# test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/", "||", "exit", "0"]
# # interval: 60s
# timeout: 15s
# retries: 5
# start_period: 30s
# yeko-school - TanStack Start application
yeko-school:
build:
context: .
dockerfile: apps/school/Dockerfile
container_name: yeko-school-dev
restart: unless-stopped
ports:
- '3001:3001'
volumes:
- ./apps/school:/app/apps/school:delegated
- ./packages:/app/packages:delegated
- node_modules_school:/app/node_modules
- /app/apps/school/node_modules
environment:
- NODE_ENV=development
- BETTER_AUTH_URL=http://localhost:3001
- APP_URL=http://localhost:3001
env_file:
- ./apps/school/.env
networks:
- yeko-network
depends_on:
- yeko-core
dns:
- 8.8.8.8
- 1.1.1.1
# yeko-teacher - TanStack Start application
yeko-teacher:
build:
context: .
dockerfile: apps/teacher/Dockerfile
container_name: yeko-teacher-dev
restart: unless-stopped
ports:
- '3002:3002'
volumes:
- ./apps/teacher:/app/apps/teacher:delegated
- ./packages:/app/packages:delegated
- node_modules_teacher:/app/node_modules
- /app/apps/teacher/node_modules
environment:
- NODE_ENV=development
- BETTER_AUTH_URL=http://localhost:3002
- APP_URL=http://localhost:3002
env_file:
- ./apps/teacher/.env
networks:
- yeko-network
depends_on:
- yeko-core
dns:
- 8.8.8.8
- 1.1.1.1
# data-service - Cloudflare Worker (Hono)
data-service:
build:
context: .
dockerfile: apps/data-service/Dockerfile
container_name: yeko-data-service-dev
restart: unless-stopped
ports:
- '8787:8787'
volumes:
- ./apps/data-service:/app/apps/data-service:delegated
- ./packages:/app/packages:delegated
- node_modules_data_service:/app/node_modules
- /app/apps/data-service/node_modules
environment:
- NODE_ENV=development
env_file:
- ./apps/data-service/.env
networks:
- yeko-network
depends_on:
- yeko-core
dns:
- 8.8.8.8
- 1.1.1.1
# queue-worker - Cloudflare Worker (background tasks)
queue-worker:
build:
context: .
dockerfile: packages/queue-worker/Dockerfile
container_name: yeko-queue-worker-dev
restart: unless-stopped
volumes:
- ./packages/queue-worker:/app/packages/queue-worker:delegated
- ./packages:/app/packages:delegated
- node_modules_queue_worker:/app/node_modules
- /app/packages/queue-worker/node_modules
environment:
- NODE_ENV=development
env_file:
- ./packages/queue-worker/.env
networks:
- yeko-network
depends_on:
- yeko-core
dns:
- 8.8.8.8
- 1.1.1.1
volumes:
node_modules_core:
node_modules_school:
node_modules_teacher:
node_modules_data_service:
node_modules_queue_worker: