From cd6a8df4bf485ac5a50f95c7665eecb2fe9e7150 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Wed, 10 Jan 2024 02:06:40 +0530 Subject: [PATCH] feat: add docker-compose for local dev env --- docker-compose.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..deb26aa --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,32 @@ +version: "3" +services: + forgejo: + image: codeberg.org/forgejo/forgejo:1.21.3-0 + ports: + - 3001:3001 + environment: + FORGEJO__security__INSTALL_LOCK: true + FORGEJO__federation__ENABLED: true + FORGEJO__server__ROOT_URL: http://localhost + FORGEJO__server__HTTP_PORT: 3001 + FORGEJO__service_ENABLE_NOTIFY_MAIL: true + FORGEJO__service_REGISTER_EMAIL_CONFIRM: true + FORGEJO__admin_DEFAULT_EMAIL_NOTIFICATIONS: enabled + FORGEJO__admin_SEND_NOTIFICATION_EMAIL_ON_NEW_USER: true + FORGEJO__mailer_ENABLED: true + FORGEJO__mailer_PROTOCOL: smtp + FORGEJO__mailer_SMTP_ADDR: maildev + FORGEJO__mailer_SMTP_PORT: 10025 + FORGEJO__mailer_FROM: forgejo@ci.local + FORGEJO__mailer_USER: admin + FORGEJO__mailer_PASSWORD: password + + maildev: + image: maildev/maildev:latest + ports: + - 1080:1080 + environment: + MAILDEV_SMTP_PORT: 10025 + MAILDEV_WEB_PORT: 1080 + MAILDEV_INCOMING_USER: admin + MAILDEV_INCOMING_PASS: password