30 lines
548 B
YAML
30 lines
548 B
YAML
version: '3.8'
|
|
|
|
services:
|
|
# Full stack deployment with backend
|
|
palace-backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.backend
|
|
ports:
|
|
- "3001:3001"
|
|
volumes:
|
|
- palace-data:/data
|
|
environment:
|
|
- PORT=3001
|
|
restart: unless-stopped
|
|
|
|
palace-frontend-db:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.frontend
|
|
ports:
|
|
- "80:80"
|
|
environment:
|
|
- API_URL=http://palace-backend:3001
|
|
depends_on:
|
|
- palace-backend
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
palace-data: |