diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..dfd5f16 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,47 @@ +version: "3.7" + +services: + + wanda: + image: ghcr.io/trento-project/trento-wanda:rolling + environment: + DATABASE_URL: ecto://postgres:postgres@postgres/postgres + SECRET_KEY_BASE: dummyS3cr3t + AMQP_URL: amqp://wanda:wanda@rabbitmq + CORS_ENABLED: "false" + CATALOG_PATH: /app/catalog + JWT_AUTHENTICATION_ENABLED: "false" + depends_on: + - postgres + - rabbitmq + - checks + ports: + - 4000:4000 + entrypoint: /bin/sh -c "/app/bin/wanda eval \"Wanda.Release.init()\" && /app/bin/wanda start" + volumes: + - ./priv/catalog/:/app/catalog:rw + - ./checks:/usr/share/trento/checks:ro + + rabbitmq: + image: rabbitmq:3.10.5-management-alpine + ports: + - 5672:5672 + - 15672:15672 + environment: + RABBITMQ_DEFAULT_USER: wanda + RABBITMQ_DEFAULT_PASS: wanda + + postgres: + image: postgres:15 + environment: + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + PGDATA: /var/lib/postgresql/data/pgdata + ports: + - 5434:5432 + volumes: + - pg_data:/var/lib/postgresql/data + +volumes: + pg_data: +