37 lines
654 B
YAML
37 lines
654 B
YAML
services:
|
|
|
|
backend:
|
|
build: ./backend
|
|
container_name: sloth-backend
|
|
restart: unless-stopped
|
|
env_file: ./backend/.env
|
|
volumes:
|
|
- sloth-data:/data
|
|
networks:
|
|
- sloth-net
|
|
healthcheck:
|
|
test: ["CMD", "wget", "-qO-", "http://localhost:3001/api/ping"]
|
|
interval: 30s
|
|
timeout: 5s
|
|
retries: 3
|
|
|
|
frontend:
|
|
build: ./frontend
|
|
container_name: sloth-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "80:80"
|
|
networks:
|
|
- sloth-net
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
|
|
volumes:
|
|
sloth-data:
|
|
driver: local
|
|
|
|
networks:
|
|
sloth-net:
|
|
driver: bridge
|