Files
psychologist/docker-compose.yml
T

40 lines
761 B
YAML

services:
backend:
build: ./backend
expose:
- 3001
env_file:
- .env
environment:
- PORT=3001
restart: unless-stopped
networks:
- coolify
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:3001/"]
interval: 10s
timeout: 5s
retries: 3
start_period: 10s
frontend:
build:
context: ./frontend
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