twenty/infra/dev/docker-compose.yml

54 lines
1.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"
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
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_ENABLED_LOG_TYPES: startup, http-log, webhook-log, websocket-log, query-log
twenty-server:
build:
context: ../..
dockerfile: ./infra/dev/server/Dockerfile
ports:
- "3000:3000"
volumes:
- ../../front:/app/front
2023-04-05 16:01:20 +03:00
- twenty_node_modules_server:/app/server/node_modules
2023-01-27 14:12:04 +03:00
depends_on:
- postgres
2022-12-28 23:19:12 +03:00
postgres:
build: ./postgres
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgrespassword
ports:
- "5432:5432"
volumes:
2023-04-05 16:01:20 +03:00
db_data:
twenty_node_modules_front:
twenty_node_modules_server: