docker-compose for the frontend

Serve static files via nginx from dist folder in docker-compose
This commit is contained in:
Ulf Gebhardt 2025-03-10 16:02:43 +01:00
parent b98daf618b
commit 0f64f3200c
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

18
docker-compose.yml Normal file
View File

@ -0,0 +1,18 @@
services:
frontend:
image: flashspys/nginx-static
container_name: frontend
ports:
- 8080:80
volumes:
- ./dist:/static
#backend:
# image: directus/directus
# container_name: backend
# ports:
# - 8055:8055
# environment:
# - SECRET=SECRET
# - PUBLIC_URL=http://localhost
# - ADMIN_EMAIL=admin@it4c.dev
# - ADMIN_PASSWORD=admin123