document deployment
This commit is contained in:
30
docker-compose.yml
Normal file
30
docker-compose.yml
Normal file
@ -0,0 +1,30 @@
|
||||
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:
|
||||
Reference in New Issue
Block a user