Browse Source

fix docker-compose

main
matthew 2 years ago
parent
commit
5ecb7d91e3
  1. 18
      docker-compose.yml

18
docker-compose.yml

@ -4,32 +4,31 @@ services:
db: db:
image: postgres:latest image: postgres:latest
volumes: 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 env_file: ./searching-front/.env.local #Here we are using the already existing .env.local file
ports: ports:
- "5432:5432" - "5432:5432"
elasticsearch: elasticsearch:
image: elasticsearch:8.4.0 image: elasticsearch:8.4.0
volumes:
- elastic:/usr/share/elasticsearch/data
environment: environment:
- xpack.security.enabled=false - xpack.security.enabled=false
- "discovery.type=single-node" - "discovery.type=single-node"
ports: ports:
- 9200:9200 - 9200:9200
volumes:
- /home/matthew/volumes/elastic:/usr/share/elasticsearch/data
influxdb: influxdb:
image: influxdb:2.4-alpine image: influxdb:2.4-alpine
ports: ports:
- '8086:8086' - '8086:8086'
volumes: volumes:
- /home/matthew/volumes/influx:/var/lib/influxdb - influxdb-storage:/var/lib/influxdb
env_file: ./searching-front/.env.local env_file: ./searching-front/.env.local
front: front:
container_name: front container_name: front
build: ./searching-front build: ./searching-front
restart: always restart: always
ports:
- 3000:3000
watcher: watcher:
container_name: watcher container_name: watcher
depends_on: depends_on:
@ -49,6 +48,7 @@ networks:
es-net: es-net:
driver: bridge driver: bridge
# volumes: volumes:
# dbdata: dbdata:
# influxdb-storage: influxdb-storage:
elastic:

Loading…
Cancel
Save