diff --git a/api b/api index 10e4acd..644f62f 160000 --- a/api +++ b/api @@ -1 +1 @@ -Subproject commit 10e4acdbfb6bda4376b0cb13dfd00011adfd90c3 +Subproject commit 644f62f2d72bb260ffd633495586f1ccb0dcdd8a diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 481e293..69f2f86 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -76,6 +76,7 @@ services: image: api container_name: lago_api restart: unless-stopped + command: ["./scripts/start.dev.sh"] build: context: ./api dockerfile: $LAGO_PATH/api/Dockerfile.dev @@ -97,15 +98,30 @@ services: - "traefik.http.services.api.loadbalancer.server.port=3000" api-worker: - image: api-worker + image: api container_name: lago_api_worker restart: unless-stopped + command: ["./scripts/start.worker.dev.sh"] build: context: ./api - dockerfile: $LAGO_PATH/api/Dockerfile.worker.dev + dockerfile: $LAGO_PATH/api/Dockerfile.dev volumes: - $LAGO_PATH/api:/app environment: + - DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@db:5432/${POSTGRES_DB:-lago} - REDIS_URL=redis://redis:6379 + api-clock: + image: api + container_name: lago_api_clock + restart: unless-stopped + command: ["./scripts/start.clock.dev.sh"] + build: + context: ./api + dockerfile: $LAGO_PATH/api/Dockerfile.dev + volumes: + - $LAGO_PATH/api:/app + environment: + - DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@db:5432/${POSTGRES_DB:-lago} + - REDIS_URL=redis://redis:6379 \ No newline at end of file