63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
version: '3'
|
|
services:
|
|
eveal:
|
|
image: eveal:latest
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
env_file:
|
|
- .env
|
|
ports:
|
|
- 8000:8000
|
|
volumes:
|
|
- ./eveal:/app/eveal
|
|
- ./eveal.db:/app/eveal.db
|
|
command: ["uvicorn", "eveal.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
|
depends_on:
|
|
redis:
|
|
condition: service_healthy
|
|
# db:
|
|
# condition: service_healthy
|
|
# elasticsearch:
|
|
# condition: service_healthy
|
|
|
|
redis:
|
|
image: redis:latest
|
|
ports:
|
|
- 6379:6379
|
|
healthcheck:
|
|
test: redis-cli ping
|
|
interval: 3s
|
|
|
|
# db:
|
|
# image: postgres:13-alpine
|
|
# ports:
|
|
# - 5432:5432
|
|
# volumes:
|
|
# - ./dump_sde.sql:/docker-entrypoint-initdb.d/init_sde.sql
|
|
# - mabras_dbdata:/var/lib/postgresql/data
|
|
# environment:
|
|
# - POSTGRES_PASSWORD
|
|
# - POSTGRES_USER
|
|
# - POSTGRES_DB
|
|
# healthcheck:
|
|
# test: pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}
|
|
# interval: 10s
|
|
# timeout: 3s
|
|
# retries: 3
|
|
|
|
# elasticsearch:
|
|
# image: elasticsearch:latest
|
|
# ports:
|
|
# - 9200:9200
|
|
# environment:
|
|
# - discovery.type=single-node
|
|
# - cluster.name=elasticsearch
|
|
# - bootstrap.memory_lock=true
|
|
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
|
|
# healthcheck:
|
|
# test: curl -s http://elasticsearch:9200 >/dev/null || exit 1
|
|
# interval: 10s
|
|
# timeout: 3s
|
|
# retries: 3
|