Fix server local build (#75)

* Fix server local build

* Build docs locally and for prod

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Charles Bochet
2023-04-25 17:47:15 +02:00
committed by GitHub
parent ae7bad65ca
commit d2c6a71c9e
6 changed files with 40 additions and 4 deletions

View File

@ -74,7 +74,7 @@ services:
- "1025:1025"
- "8025:8025"
twenty-server:
build:
build:
context: ../..
dockerfile: ./infra/dev/server/Dockerfile
ports:
@ -87,6 +87,15 @@ services:
SERVER_DATABASE_URL: ${SERVER_DATABASE_URL}
depends_on:
- postgres
twenty-docs:
build:
context: ../..
dockerfile: ./infra/dev/docs/Dockerfile
ports:
- "5000:3000"
volumes:
- ../../docs:/app/docs
- twenty_node_modules_docs:/app/docs/node_modules
postgres:
build: ./postgres
volumes:
@ -98,4 +107,5 @@ services:
volumes:
db_data:
twenty_node_modules_front:
twenty_node_modules_server:
twenty_node_modules_server:
twenty_node_modules_docs: