add build to dockercompose

This commit is contained in:
Emily
2024-06-26 18:54:17 +02:00
parent f4fa8717bf
commit 713f956429

View File

@@ -1,5 +1,3 @@
version: "3.1"
services: services:
mongo: mongo:
image: mongo image: mongo
@@ -19,7 +17,7 @@ services:
command: redis-server --save 20 1 --loglevel warning --requirepass litlyx command: redis-server --save 20 1 --loglevel warning --requirepass litlyx
producer: producer:
image: litlyx-producer:latest image: litlyx-producer
restart: always restart: always
ports: ports:
- "3099:3099" - "3099:3099"
@@ -29,9 +27,12 @@ services:
REDIS_USERNAME: "default" REDIS_USERNAME: "default"
REDIS_PASSWORD: "litlyx" REDIS_PASSWORD: "litlyx"
STREAM_NAME: "lib-events" STREAM_NAME: "lib-events"
build:
dockerfile: ./producer/Dockerfile
broker: broker:
image: litlyx-broker:latest image: litlyx-broker
restart: always restart: always
ports: ports:
- "3999:3999" - "3999:3999"
@@ -46,9 +47,11 @@ services:
REDIS_USERNAME: "default" REDIS_USERNAME: "default"
REDIS_PASSWORD: "litlyx" REDIS_PASSWORD: "litlyx"
STREAM_NAME: "lib-events" STREAM_NAME: "lib-events"
build:
dockerfile: ./broker/Dockerfile
dashboard: dashboard:
image: litlyx-dashboard:latest image: litlyx-dashboard
restart: always restart: always
ports: ports:
- "3000:3000" - "3000:3000"
@@ -79,6 +82,8 @@ services:
NUXT_STRIPE_SECRET: "STRIPE_SECRET" NUXT_STRIPE_SECRET: "STRIPE_SECRET"
NUXT_STRIPE_WH_SECRET: "STRIPE_WEBHOOK_SECRET" NUXT_STRIPE_WH_SECRET: "STRIPE_WEBHOOK_SECRET"
build:
dockerfile: ./dashboard/Dockerfile
volumes: volumes:
mongo-data: mongo-data: