-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.coolify.yaml
49 lines (48 loc) · 1.28 KB
/
docker-compose.coolify.yaml
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
services:
api:
container_name: API_SQL_SANDBOX
build:
context: ./apps/api
dockerfile: Dockerfile
restart: unless-stopped
ports:
- ${API_PORT:-3002}:3001
environment:
- API_PORT=${API_PORT:-3002}
- NODE_ENV=production
- PORT=3001
command: "node server.js" # Ensure server binds to 0.0.0.0
volumes:
- type: bind
source: ./apps/api/user_dbs
target: /app/user_dbs
# is_directory: true
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://api:3001/health']
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
web:
container_name: WEB_SQL_SANDBOX
build:
context: ./apps/web
dockerfile: Dockerfile
args:
NEXT_PUBLIC_SERVER_URL: ${NEXT_PUBLIC_SERVER_URL}
restart: unless-stopped
ports:
- ${WEB_PORT:-3001}:3000
environment:
- WEB_PORT=${WEB_PORT:-3001}
- NODE_ENV=production
- NEXT_PUBLIC_SERVER_URL=${NEXT_PUBLIC_SERVER_URL}
depends_on:
api:
condition: service_healthy
healthcheck:
test: ['CMD', 'wget', '--no-verbose', '--tries=1', '--spider', 'http://web:3000']
interval: 30s
timeout: 10s
retries: 3
start_period: 40s