Searching.ton
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

65 lines
1.3 KiB

version: "3.7"
services:
db:
image: postgres:latest
volumes:
- dbdata:/var/lib/postgresql/data
env_file: ./searching-front/.env.local #Here we are using the already existing .env.local file
# ports:
# - "5432:5432"
elasticsearch:
image: elasticsearch:8.4.0
volumes:
- elastic:/usr/share/elasticsearch/data
environment:
- xpack.security.enabled=false
- "discovery.type=single-node"
# ports:
# - 9200:9200
influxdb:
image: influxdb:2.4-alpine
ports:
- '8086:8086'
volumes:
- influxdb-storage:/var/lib/influxdb
env_file: ./searching-front/.env.local
front:
container_name: front
build: ./searching-front
restart: always
ports:
- '3000:3000'
depends_on:
- elasticsearch
- db
- influxdb
env_file: ./searching-front/.env.local
watcher:
ports:
- '5555:5555'
container_name: watcher
depends_on:
- elasticsearch
build:
context: ./searching-front
dockerfile: Dockerfile.watcher
restart: always
env_file: ./searching-front/.env.local
nginx:
restart: always
depends_on:
- front
build:
context: ./nginx
ports:
- "80:80"
networks:
es-net:
driver: bridge
volumes:
dbdata:
influxdb-storage:
elastic: