init
This commit is contained in:
28
docker-compose.yml
Normal file
28
docker-compose.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "3000:3000"
|
||||
volumes:
|
||||
- ./data:/app/data
|
||||
environment:
|
||||
- PORT=3000
|
||||
- ADMIN_TOKEN=${ADMIN_TOKEN:-default_insecure_token}
|
||||
- DATA_DIR=/app/data
|
||||
restart: unless-stopped
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- "4321:4321"
|
||||
environment:
|
||||
- PUBLIC_API_URL=http://backend:3000
|
||||
depends_on:
|
||||
- backend
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user