cd: add clock to docker-compose

This commit is contained in:
Jeremy Denquin 2022-04-02 23:47:05 +02:00
parent 521149113c
commit 96bd1a80f5
2 changed files with 19 additions and 3 deletions

2
api

@ -1 +1 @@
Subproject commit 10e4acdbfb6bda4376b0cb13dfd00011adfd90c3
Subproject commit 644f62f2d72bb260ffd633495586f1ccb0dcdd8a

View File

@ -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