🔧 chore(docker-compose.yml): add support for loading environment variables from .env file for all services

🔧 chore(docker-compose.yml): add support for loading environment variables from .env file for the proxy service

🔧 chore(docker-compose.yml): add support for loading environment variables from .env file for the backend service

🔧 chore(docker-compose.yml): add support for loading environment variables from .env file for the pgadmin service

🔧 chore(docker-compose.yml): add support for loading environment variables from .env file for the queue service

🔧 chore(docker-compose.yml): add support for loading environment variables from .env file for the celeryworker service

🔧 chore(docker-compose.yml): add support for loading environment variables from .env file for the flower service

🔧 chore(docker-compose.yml): add support for loading environment variables from .env file for the frontend service

🔧 chore(docker-compose.yml): add support for loading environment variables from .env file for the prometheus service

🔧 chore(docker-compose.yml): add support for loading environment variables from .env file for the grafana service
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-11 12:16:29 -03:00
commit 6e52990322

View file

@ -3,6 +3,8 @@ version: "3.8"
services: services:
proxy: proxy:
image: traefik:v3.0 image: traefik:v3.0
env_file:
- .env
networks: networks:
- ${TRAEFIK_PUBLIC_NETWORK?Variable not set} - ${TRAEFIK_PUBLIC_NETWORK?Variable not set}
- default - default
@ -71,9 +73,8 @@ services:
build: build:
context: ../ context: ../
dockerfile: base.Dockerfile dockerfile: base.Dockerfile
# user: your-non-root-user # Make sure your Dockerfile creates this user env_file:
# ports: - .env
# - 7860
volumes: volumes:
- ../:/app - ../:/app
- ./startup-backend.sh:/startup-backend.sh # Ensure the paths match - ./startup-backend.sh:/startup-backend.sh # Ensure the paths match
@ -99,6 +100,8 @@ services:
- node.labels.${STACK_NAME?Variable not set}.app-db-data == true - node.labels.${STACK_NAME?Variable not set}.app-db-data == true
healthcheck: healthcheck:
test: "exit 0" test: "exit 0"
env_file:
- .env
pgadmin: pgadmin:
image: dpage/pgadmin4 image: dpage/pgadmin4
@ -107,6 +110,8 @@ services:
- default - default
volumes: volumes:
- ./pgadmin:/var/lib/pgadmin - ./pgadmin:/var/lib/pgadmin
env_file:
- .env
deploy: deploy:
labels: labels:
- traefik.enable=true - traefik.enable=true
@ -123,6 +128,8 @@ services:
queue: queue:
image: redis:6.2.5 image: redis:6.2.5
env_file:
- .env
# ports: # ports:
# - 6379:6379 # - 6379:6379
healthcheck: healthcheck:
@ -130,6 +137,8 @@ services:
celeryworker: celeryworker:
image: "ogabrielluiz/langflow:latest" image: "ogabrielluiz/langflow:latest"
env_file:
- .env
build: build:
context: ../ context: ../
dockerfile: base.Dockerfile dockerfile: base.Dockerfile
@ -141,6 +150,8 @@ services:
flower: flower:
image: "ogabrielluiz/langflow:latest" image: "ogabrielluiz/langflow:latest"
env_file:
- .env
networks: networks:
- default - default
build: build:
@ -166,6 +177,8 @@ services:
frontend: frontend:
image: "ogabrielluiz/langflow_frontend:latest" image: "ogabrielluiz/langflow_frontend:latest"
env_file:
- .env
# user: your-non-root-user # user: your-non-root-user
build: build:
context: ../src/frontend context: ../src/frontend
@ -182,6 +195,8 @@ services:
prometheus: prometheus:
image: prom/prometheus:v2.37.9 image: prom/prometheus:v2.37.9
env_file:
- .env
volumes: volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml - ./prometheus.yml:/etc/prometheus/prometheus.yml
command: command:
@ -199,6 +214,8 @@ services:
grafana: grafana:
image: grafana/grafana:8.2.6 image: grafana/grafana:8.2.6
env_file:
- .env
# ports: # ports:
# - 3000:3000 # - 3000:3000
volumes: volumes: