twenty/infra/dev/docker-compose.yml

111 lines
3.4 KiB
YAML
Raw Normal View History

2022-12-28 23:19:12 +03:00
version: "3.9"
services:
2023-04-12 16:08:27 +03:00
twenty-front:
2023-01-27 14:12:04 +03:00
build:
context: ../..
2023-04-12 16:08:27 +03:00
dockerfile: ./infra/dev/front/Dockerfile
2023-01-27 14:12:04 +03:00
ports:
- "3001:3001"
- "6006:6006"
2023-04-20 19:46:27 +03:00
environment:
REACT_APP_API_URL: ${FRONT_REACT_APP_API_URL}
REACT_APP_AUTH_URL: ${FRONT_REACT_APP_AUTH_URL}
HASURA_GRAPHQL_ENDPOINT: ${FRONT_HASURA_GRAPHQL_ENDPOINT}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
2023-01-27 14:12:04 +03:00
volumes:
2023-04-12 16:08:27 +03:00
- ../../front:/app/front
2023-04-05 16:01:20 +03:00
- twenty_node_modules_front:/app/front/node_modules
2023-04-12 16:08:27 +03:00
depends_on:
- postgres
twenty-hasura:
build: ./hasura
ports:
- "8080:8080"
- "9695:9695"
- "9693:9693"
volumes:
- ../../hasura:/hasura
2023-04-19 14:04:21 +03:00
- /hasura/entrypoints
2023-04-12 16:08:27 +03:00
depends_on:
- "postgres"
restart: always
environment:
2023-04-24 15:50:48 +03:00
HASURA_GRAPHQL_METADATA_DATABASE_URL: ${HASURA_GRAPHQL_METADATA_DATABASE_URL}
HASURA_GRAPHQL_PG_DATABASE_URL: ${HASURA_GRAPHQL_PG_DATABASE_URL}
2023-04-13 19:12:33 +03:00
HASURA_GRAPHQL_ENABLE_CONSOLE: "false"
2023-04-12 16:08:27 +03:00
HASURA_GRAPHQL_DEV_MODE: "true"
HASURA_GRAPHQL_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
2023-04-24 15:50:48 +03:00
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
HASURA_EVENT_HANDLER_URL: ${HASURA_EVENT_HANDLER_URL}
2023-04-19 14:04:21 +03:00
hasura-auth:
image: nhost/hasura-auth:0.19.1
ports:
- "4000:4000"
environment:
2023-04-24 15:50:48 +03:00
HASURA_GRAPHQL_JWT_SECRET: ${HASURA_GRAPHQL_JWT_SECRET}
HASURA_GRAPHQL_DATABASE_URL: ${HASURA_GRAPHQL_PG_DATABASE_URL}
HASURA_GRAPHQL_GRAPHQL_URL: ${HASURA_AUTH_GRAPHQL_URL}
HASURA_GRAPHQL_ADMIN_SECRET: ${HASURA_GRAPHQL_ADMIN_SECRET}
AUTH_JWT_CUSTOM_CLAIMS: '{"workspace-id":"workspace_member.workspace_id"}'
2023-04-19 14:04:21 +03:00
npm_package_version: '0'
AUTH_SMTP_HOST: mailhog
AUTH_SMTP_PORT: 1025
2023-04-20 19:46:27 +03:00
AUTH_SERVER_URL: ${HASURA_AUTH_SERVER_URL}
AUTH_CLIENT_URL: ${HASURA_AUTH_CLIENT_URL}
AUTH_PROVIDER_GOOGLE_ENABLED: "true"
2023-04-20 19:46:27 +03:00
AUTH_PROVIDER_GOOGLE_CLIENT_ID: ${HASURA_AUTH_PROVIDER_GOOGLE_CLIENT_ID}
AUTH_PROVIDER_GOOGLE_CLIENT_SECRET: ${HASURA_AUTH_PROVIDER_GOOGLE_CLIENT_SECRET}
AUTH_PROVIDER_GOOGLE_SCOPE: email,profile
2023-04-19 14:04:21 +03:00
depends_on:
- "twenty-hasura"
- "postgres"
2023-04-19 18:51:15 +03:00
- "mailhog"
mailhog:
image: jcalonso/mailhog
environment:
SMTP_HOST: mailhog
SMTP_PORT: 1025
SMTP_PASS: smtp-secret
SMTP_USER: smtp-user
SMTP_SECURE: "false"
SMTP_SENDER: auth@localhost
ports:
- "1025:1025"
- "8025:8025"
2023-04-12 16:08:27 +03:00
twenty-server:
build:
2023-04-12 16:08:27 +03:00
context: ../..
dockerfile: ./infra/dev/server/Dockerfile
ports:
- "3000:3000"
volumes:
- ../../server:/app/server
2023-04-05 16:01:20 +03:00
- twenty_node_modules_server:/app/server/node_modules
2023-04-24 15:50:48 +03:00
environment:
HASURA_EVENT_HANDLER_SECRET_HEADER: ${SERVER_HASURA_EVENT_HANDLER_SECRET_HEADER}
SERVER_DATABASE_URL: ${SERVER_DATABASE_URL}
2023-01-27 14:12:04 +03:00
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
2022-12-28 23:19:12 +03:00
postgres:
build: ./postgres
volumes:
- db_data:/var/lib/postgresql/data
environment:
2023-04-24 15:50:48 +03:00
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
2022-12-28 23:19:12 +03:00
ports:
- "5432:5432"
volumes:
2023-04-05 16:01:20 +03:00
db_data:
twenty_node_modules_front:
twenty_node_modules_server:
twenty_node_modules_docs: