From 8be1d1f1cd004cd04caae3317119fbc6d56ac576 Mon Sep 17 00:00:00 2001 From: WilcoApp Date: Mon, 9 Dec 2024 11:41:21 +0000 Subject: [PATCH] Adding docker-compose.yml --- docker-compose.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e2d5f5e --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,29 @@ +version: "3.8" + +services: + mongo: + image: mongo:latest + container_name: mongo + ports: + - "27017:27017" + environment: + MONGO_INITDB_ROOT_USERNAME: wilco_user + MONGO_INITDB_ROOT_PASSWORD: wilco_password + + webhook: + image: mcr.microsoft.com/dotnet/aspnet:3.1 + container_name: webhook + build: + context: ./webhook + dockerfile: Dockerfile + ports: + - "5000:80" + environment: + ASPNETCORE_ENVIRONMENT: Development + FORGE_CLIENT_ID: client_id + FORGE_CLIENT_SECRET: client_secret + FORGE_CALLBACK_URL: http://${CODESPACE_NAME}-5000.preview.app.github.dev/api/forge/callback/oauth + FORGE_WEBHOOK_URL: http://${CODESPACE_NAME}-5000.preview.app.github.dev/api/forge/callback/webhook + OAUTH_DATABASE: mongodb://wilco_user:wilco_password@mongo:27017/webhook?authSource=admin + depends_on: + - mongo