Skip to content

Instantly share code, notes, and snippets.

@Frando
Last active April 2, 2021 10:20
Show Gist options
  • Save Frando/e022257eda5977a69002462eb44789c3 to your computer and use it in GitHub Desktop.
Save Frando/e022257eda5977a69002462eb44789c3 to your computer and use it in GitHub Desktop.
Open Audio Search via Docker Compose
version: "3.9"
services:
backend:
image: "arsoxyz/oas:nightly"
ports:
- "8080:8080"
volumes:
- "./data/oas:/data"
environment:
REDIS_URL: "redis://redis:6379/0"
ELASTIC_URL: "http://elasticsearch:9200/"
worker:
image: "arsoxyz/oas:nightly"
command: ["python", "worker.py"]
volumes:
- "./data/oas:/data"
environment:
REDIS_URL: "redis://redis:6379/0"
ELASTIC_URL: "http://elasticsearch:9200/"
redis:
image: "redis:alpine"
command: ["redis-server", "--appendonly", "yes"]
volumes:
- "./data/redis:/data"
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.11.2
volumes:
- "./data/elastic:/usr/share/elasticsearch/data"
environment:
http.host: 0.0.0.0
discovery.type: single-node
ES_JAVA_OPTS: "-Xms500m -Xmx500m"
TAKE_FILE_OWNERSHIP: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment