first commit
This commit is contained in:
38
docker-compose.yml
Normal file
38
docker-compose.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: backend/Dockerfile
|
||||
container_name: routeros-backup-backend
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./docker-data:/app/storage
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-fsS', 'http://localhost:8000/api/health']
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 20s
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: frontend/Dockerfile
|
||||
container_name: routeros-backup-frontend
|
||||
restart: unless-stopped
|
||||
|
||||
reverse-proxy:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: reverse-proxy/Dockerfile
|
||||
container_name: routeros-backup-reverse-proxy
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
frontend:
|
||||
condition: service_started
|
||||
ports:
|
||||
- '${APP_PORT:-8080}:80'
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user