Fix docker-compose commands (#3403)

This commit is contained in:
Charles Bochet 2024-01-12 14:31:47 +01:00 committed by GitHub
parent 52e0e385a4
commit 6672b04733
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 17 deletions

View File

@ -1,11 +1,11 @@
docker-dev-build:
make -C packages/twenty-docker dev-build
docker-dev-up:
make -C packages/twenty-docker dev-up
docker-dev-start:
make -C packages/twenty-docker dev-start
docker-dev-down:
make -C packages/twenty-docker dev-down
docker-dev-stop:
make -C packages/twenty-docker dev-stop
docker-dev-sh:
make -C packages/twenty-docker dev-sh

View File

@ -1,16 +1,12 @@
dev-build:
@docker compose -f dev/docker-compose.yml down
@docker volume rm twenty_dev_node_modules_root > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_docs > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_eslint > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_front > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_server > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_website > /dev/null 2>&1 || true
@docker volume rm twenty_dev_node_modules_zapier > /dev/null 2>&1 || true
@docker compose -f dev/docker-compose.yml down -v
@docker compose -f dev/docker-compose.yml build
dev-up:
@docker compose -f dev/docker-compose.yml up -d
dev-start:
@docker compose -f dev/docker-compose.yml start
dev-stop:
@docker compose -f dev/docker-compose.yml stop
dev-down:
@docker compose -f dev/docker-compose.yml down -v

View File

@ -15,7 +15,6 @@ services:
- twenty_dev_node_modules_front:/app/packages/twenty-front/node_modules
- twenty_dev_node_modules_server:/app/packages/twenty-server/node_modules
- twenty_dev_node_modules_website:/app/packages/twenty-website/node_modules
- twenty_dev_node_modules_zapier:/app/packages/twenty-zapier/node_modules
depends_on:
- postgres
postgres:
@ -38,5 +37,4 @@ volumes:
twenty_dev_node_modules_front:
twenty_dev_node_modules_server:
twenty_dev_node_modules_website:
twenty_dev_node_modules_zapier:

View File

@ -86,7 +86,7 @@ Before running the project, you need to initialize the database by running the m
Start the containers:
```bash
make docker-dev-up
make docker-dev-start
```
Setup database, run migrations, and seed: