Simplify infrastructure to one container
This commit is contained in:
@ -1,45 +1,19 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
twenty-front:
|
||||
twenty:
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ./infra/dev/twenty-front/Dockerfile
|
||||
dockerfile: ./infra/dev/twenty/Dockerfile
|
||||
ports:
|
||||
- "3000:3000"
|
||||
- "3001:3001"
|
||||
- "6006:6006"
|
||||
volumes:
|
||||
- ../../front:/app/front
|
||||
- ../../server:/app/server
|
||||
- ../../infra:/app/infra
|
||||
depends_on:
|
||||
- postgres
|
||||
twenty-server:
|
||||
build:
|
||||
context: ../..
|
||||
dockerfile: ./infra/dev/twenty-server/Dockerfile
|
||||
ports:
|
||||
- "3000:3000"
|
||||
depends_on:
|
||||
- postgres
|
||||
twenty-api:
|
||||
build: ./twenty-api
|
||||
ports:
|
||||
- "8080:8080"
|
||||
- "9695:9695"
|
||||
- "9693:9693"
|
||||
volumes:
|
||||
- ../../api:/api
|
||||
depends_on:
|
||||
- "postgres"
|
||||
restart: always
|
||||
environment:
|
||||
HASURA_GRAPHQL_METADATA_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/hasura
|
||||
HASURA_GRAPHQL_PG_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/twenty
|
||||
HASURA_GRAPHQL_ENABLE_CONSOLE: "true"
|
||||
HASURA_GRAPHQL_DEV_MODE: "true"
|
||||
HASURA_GRAPHQL_UNAUTHORIZED_ROLE: "public"
|
||||
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
|
||||
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
|
||||
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
|
||||
postgres:
|
||||
build: ./postgres
|
||||
volumes:
|
||||
|
||||
Reference in New Issue
Block a user