diff options
-rw-r--r-- | docker/compose/gitea/compose.yaml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docker/compose/gitea/compose.yaml b/docker/compose/gitea/compose.yaml new file mode 100644 index 0000000..81a3546 --- /dev/null +++ b/docker/compose/gitea/compose.yaml @@ -0,0 +1,31 @@ +--- +services: + gitea: + image: docker.gitea.com/gitea:1.23.6 + pull_policy: every_12h + environment: + - DB_TYPE=postgres + - DB_HOST=db:5432 + - DB_NAME=gitea + - DB_USER=gitea + - DB_PASSWD=gitea + restart: unless-stopped + volumes: + - git_data:/data + ports: + - '3000:3000' + db: + image: postgres:alpine + environment: + - POSTGRES_USER=gitea + - POSTGRES_PASSWORD=gitea + - POSTGRES_DB=gitea + restart: unless-stopped + volumes: + - db_data:/var/lib/postgresql/data + expose: + - 5432 +volumes: + db_data: + git_data: +... |