mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 09:37:53 +00:00
feat: new fixed Dockerfiles for deployment in separate folders, docker compose for composing the stack
This commit is contained in:
parent
6767782613
commit
be3ab2bcaf
4 changed files with 91 additions and 13 deletions
|
|
@ -1,13 +1,32 @@
|
|||
services:
|
||||
app:
|
||||
frontend:
|
||||
build:
|
||||
context: .
|
||||
context: ./frontend
|
||||
dockerfile: Dockerfile
|
||||
container_name: werkzeugkiste
|
||||
container_name: werkzeugkiste-frontend
|
||||
environment:
|
||||
NODE_ENV: production
|
||||
HOSTNAME: 0.0.0.0
|
||||
PORT: 3000
|
||||
- NODE_ENV=production
|
||||
- HOSTNAME=0.0.0.0
|
||||
- PORT=3000
|
||||
- backend_url=http://backend:4000
|
||||
ports:
|
||||
- "3000:3000"
|
||||
restart: unless-stopped
|
||||
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
dockerfile: Dockerfile
|
||||
container_name: werkzeugkiste-backend
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- HOSTNAME=0.0.0.0
|
||||
- PORT=4000
|
||||
- CORS_ORIGIN=http://frontend:3000
|
||||
ports:
|
||||
- "4000:4000"
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
default:
|
||||
driver: bridge
|
||||
Loading…
Add table
Add a link
Reference in a new issue