Skip to content

Commit

Permalink
Adding docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoApp committed Dec 9, 2024
1 parent f300b8d commit 8be1d1f
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8be1d1f

Please sign in to comment.