From 5ecb7d91e3391f89319aec01ece8bd380f9ba428 Mon Sep 17 00:00:00 2001 From: matthew Date: Sat, 8 Oct 2022 04:44:04 +0400 Subject: [PATCH] fix docker-compose --- docker-compose.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 98ffaa2..fbe988e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,32 +4,31 @@ services: db: image: postgres:latest volumes: - - /home/matthew/volumes/db:/var/lib/postgresql/data + - 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 - volumes: - - /home/matthew/volumes/elastic:/usr/share/elasticsearch/data influxdb: image: influxdb:2.4-alpine ports: - '8086:8086' volumes: - - /home/matthew/volumes/influx:/var/lib/influxdb + - influxdb-storage:/var/lib/influxdb env_file: ./searching-front/.env.local front: container_name: front build: ./searching-front restart: always - ports: - - 3000:3000 watcher: container_name: watcher depends_on: @@ -49,6 +48,7 @@ networks: es-net: driver: bridge -# volumes: -# dbdata: -# influxdb-storage: +volumes: + dbdata: + influxdb-storage: + elastic: