2023-12-11 12:54:57 +03:00
|
|
|
dev-build:
|
2024-01-12 16:31:47 +03:00
|
|
|
@docker compose -f dev/docker-compose.yml down -v
|
2023-12-11 12:54:57 +03:00
|
|
|
@docker compose -f dev/docker-compose.yml build
|
|
|
|
|
2024-01-13 13:02:00 +03:00
|
|
|
dev-up:
|
|
|
|
@docker compose -f dev/docker-compose.yml up -d
|
|
|
|
|
2024-01-12 16:31:47 +03:00
|
|
|
dev-start:
|
|
|
|
@docker compose -f dev/docker-compose.yml start
|
|
|
|
|
|
|
|
dev-stop:
|
|
|
|
@docker compose -f dev/docker-compose.yml stop
|
2023-12-11 12:54:57 +03:00
|
|
|
|
|
|
|
dev-down:
|
|
|
|
@docker compose -f dev/docker-compose.yml down -v
|
|
|
|
|
|
|
|
dev-sh:
|
|
|
|
@docker compose -f dev/docker-compose.yml exec twenty-dev sh
|
|
|
|
|
2023-12-11 15:36:24 +03:00
|
|
|
dev-postgres-build:
|
2023-12-11 12:54:57 +03:00
|
|
|
@docker stop twenty_postgres || true
|
|
|
|
@docker rm twenty_postgres || true
|
|
|
|
@docker volume rm twenty_db_data || true
|
2023-12-11 13:13:03 +03:00
|
|
|
@docker compose -f dev/docker-compose.yml up --build postgres -d
|
2023-12-13 00:38:40 +03:00
|
|
|
|
|
|
|
prod-docs-build:
|
|
|
|
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-docs/Dockerfile --tag twenty-docs . && cd -
|
|
|
|
|
|
|
|
prod-docs-run:
|
2023-12-13 16:56:52 +03:00
|
|
|
@docker run -d -p 3000:3000 --name twenty-docs twenty-docs
|
2023-12-13 00:38:40 +03:00
|
|
|
|
|
|
|
prod-front-build:
|
|
|
|
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-front/Dockerfile --tag twenty-front . && cd -
|
|
|
|
|
|
|
|
prod-front-run:
|
2023-12-14 15:12:24 +03:00
|
|
|
@docker run -d -p 3001:3000 --name twenty-front twenty-front
|
2023-12-13 00:38:40 +03:00
|
|
|
|
|
|
|
prod-server-build:
|
|
|
|
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-server/Dockerfile --tag twenty-server . && cd -
|
|
|
|
|
|
|
|
prod-server-run:
|
2023-12-13 16:56:52 +03:00
|
|
|
@docker run -d -p 3000:3000 --name twenty-server twenty-server
|
2023-12-13 00:38:40 +03:00
|
|
|
|
|
|
|
prod-postgres-build:
|
|
|
|
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-postgres/Dockerfile --tag twenty-postgres . && cd -
|
|
|
|
|
|
|
|
prod-postgres-run:
|
2023-12-13 16:56:52 +03:00
|
|
|
@docker run -d -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres --name twenty-postgres twenty-postgres
|
2023-12-13 00:38:40 +03:00
|
|
|
|
2024-01-04 18:39:57 +03:00
|
|
|
prod-website-build:
|
2024-02-14 23:28:26 +03:00
|
|
|
@cd ../.. && docker build -f ./packages/twenty-docker/prod/twenty-website/Dockerfile --tag twenty-website . && cd -
|
2024-01-04 18:39:57 +03:00
|
|
|
|
|
|
|
prod-website-run:
|
|
|
|
@docker run -d -p 3000:3000 --name twenty-website twenty-website
|
|
|
|
|
2023-12-13 00:38:40 +03:00
|
|
|
release-front:
|
|
|
|
@cd ../.. && docker buildx build \
|
|
|
|
--push \
|
|
|
|
--no-cache \
|
|
|
|
--platform linux/amd64,linux/arm64 \
|
|
|
|
-f ./packages/twenty-docker/prod/twenty-front/Dockerfile -t twentycrm/twenty-front:$(version) -t twentycrm/twenty-front:latest . \
|
|
|
|
&& cd -
|
|
|
|
|
|
|
|
release-server:
|
|
|
|
@cd ../.. && docker buildx build \
|
|
|
|
--push \
|
|
|
|
--no-cache \
|
|
|
|
--platform linux/amd64,linux/arm64 \
|
|
|
|
-f ./packages/twenty-docker/prod/twenty-server/Dockerfile -t twentycrm/twenty-server:$(version) -t twentycrm/twenty-server:latest . \
|
|
|
|
&& cd -
|
|
|
|
|
|
|
|
release-docs:
|
|
|
|
@cd ../.. && docker buildx build \
|
|
|
|
--push \
|
|
|
|
--no-cache \
|
|
|
|
--platform linux/amd64,linux/arm64 \
|
|
|
|
-f ./packages/twenty-docker/prod/twenty-docs/Dockerfile -t twentycrm/twenty-docs:$(version) -t twentycrm/twenty-docs:latest . \
|
|
|
|
&& cd -
|
|
|
|
|
|
|
|
release-postgres:
|
|
|
|
@cd ../.. && docker buildx build \
|
|
|
|
--push \
|
|
|
|
--no-cache \
|
|
|
|
--platform linux/amd64,linux/arm64 \
|
|
|
|
-f ./packages/twenty-docker/prod/twenty-postgres/Dockerfile -t twentycrm/twenty-postgres:$(version) -t twentycrm/twenty-postgres:latest . \
|
|
|
|
&& cd -
|