From 72d78de1784f3f605491d786be327440f64f60f9 Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Wed, 20 Nov 2024 14:32:40 +0100 Subject: [PATCH] Initial --- .gitignore | 3 +++ compose.yml | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 .gitignore create mode 100644 compose.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8ce67c5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +data +mariadb +*.env diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..fe0b7f9 --- /dev/null +++ b/compose.yml @@ -0,0 +1,35 @@ +networks: + forgejo: + external: false + nginx_proxy: + external: true + +services: + forgejo: + image: codeberg.org/forgejo/forgejo:9 + container_name: forgejo + environment: + - USER_UID=1000 + - USER_GID=1000 + restart: unless-stopped + networks: + - forgejo + - nginx_proxy + volumes: + - ./data:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - '2222:22' + + forgejo-db: + container_name: forgejo-db + image: mariadb:10.11 + restart: unless-stopped + env_file: + - db.env + volumes: + - ./mariadb:/var/lib/mysql + networks: + - forgejo +