mirror of
https://github.com/getlago/lago.git
synced 2025-07-11 00:09:43 +07:00
cd: add clock to docker-compose
This commit is contained in:
2
api
2
api
Submodule api updated: 10e4acdbfb...644f62f2d7
@ -76,6 +76,7 @@ services:
|
|||||||
image: api
|
image: api
|
||||||
container_name: lago_api
|
container_name: lago_api
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
command: ["./scripts/start.dev.sh"]
|
||||||
build:
|
build:
|
||||||
context: ./api
|
context: ./api
|
||||||
dockerfile: $LAGO_PATH/api/Dockerfile.dev
|
dockerfile: $LAGO_PATH/api/Dockerfile.dev
|
||||||
@ -97,15 +98,30 @@ services:
|
|||||||
- "traefik.http.services.api.loadbalancer.server.port=3000"
|
- "traefik.http.services.api.loadbalancer.server.port=3000"
|
||||||
|
|
||||||
api-worker:
|
api-worker:
|
||||||
image: api-worker
|
image: api
|
||||||
container_name: lago_api_worker
|
container_name: lago_api_worker
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
command: ["./scripts/start.worker.dev.sh"]
|
||||||
build:
|
build:
|
||||||
context: ./api
|
context: ./api
|
||||||
dockerfile: $LAGO_PATH/api/Dockerfile.worker.dev
|
dockerfile: $LAGO_PATH/api/Dockerfile.dev
|
||||||
volumes:
|
volumes:
|
||||||
- $LAGO_PATH/api:/app
|
- $LAGO_PATH/api:/app
|
||||||
environment:
|
environment:
|
||||||
|
- DATABASE_URL=postgresql://${POSTGRES_USER:-lago}:${POSTGRES_PASSWORD:-changeme}@db:5432/${POSTGRES_DB:-lago}
|
||||||
- REDIS_URL=redis://redis:6379
|
- 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
|
||||||
|
|
Reference in New Issue
Block a user