36 lines
615 B
YAML
36 lines
615 B
YAML
services:
|
|
backend:
|
|
build: ./backend
|
|
expose:
|
|
- 3001
|
|
env_file:
|
|
- .env
|
|
environment:
|
|
- PORT=3001
|
|
restart: unless-stopped
|
|
networks:
|
|
- coolify
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
args:
|
|
- VITE_API_URL=/api
|
|
expose:
|
|
- 80
|
|
depends_on:
|
|
- backend
|
|
restart: unless-stopped
|
|
networks:
|
|
- coolify
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80/"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 3
|
|
start_period: 10s
|
|
|
|
networks:
|
|
coolify:
|
|
external: true
|