generated from Dicken/dickendock
Erstes lauffähiges Grundgerüst: Monorepo, Fastify-API, React-Startseite, Docker
This commit is contained in:
@@ -1,14 +1,31 @@
|
||||
version: "3.9"
|
||||
|
||||
services:
|
||||
backend:
|
||||
build: ./backend
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/backend/Dockerfile
|
||||
container_name: launchpad-backend
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- DATABASE_PATH=/data/launchpad.db
|
||||
- PORT=3001
|
||||
- HOST=0.0.0.0
|
||||
- NODE_ENV=production
|
||||
volumes:
|
||||
- launchpad-data:/data
|
||||
ports:
|
||||
- "3001:3001"
|
||||
|
||||
frontend:
|
||||
build: ./frontend
|
||||
ports:
|
||||
- "3000:3000"
|
||||
build:
|
||||
context: .
|
||||
dockerfile: apps/frontend/Dockerfile
|
||||
container_name: launchpad-frontend
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- backend
|
||||
ports:
|
||||
- "8080:80"
|
||||
|
||||
volumes:
|
||||
launchpad-data:
|
||||
name: launchpad-data
|
||||
|
||||
Reference in New Issue
Block a user