From d41011283124a5fa2e24c5d4f9d21600a99f3b11 Mon Sep 17 00:00:00 2001 From: shockrah Date: Mon, 29 Jul 2024 02:53:01 -0700 Subject: [PATCH] Docker compose has a proper gitea container with basic host containers setup --- infra/containers/docker-compose.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 infra/containers/docker-compose.yaml diff --git a/infra/containers/docker-compose.yaml b/infra/containers/docker-compose.yaml new file mode 100644 index 0000000..885c3b1 --- /dev/null +++ b/infra/containers/docker-compose.yaml @@ -0,0 +1,25 @@ +version: "3" + +networks: + gitea: + external: false + + +services: + server: + image: gitea/gitea:latest + container_name: gitea + environment: + - USER_UID=1000 + - USER_GID=1000 + restart: always + networks: + - gitea + volumes: + - /opt/containers/gitea:/data + - /etc/timezone:/etc/timezone:ro + - /etc/localtime:/etc/localtime:ro + ports: + - "8080:3000" + - "2221:22" +