Browse Source

chore(develop): create development environment

adds a dev environment and instructions for running on mac and windows
master
Josh Habdas 2 years ago
parent
commit
7d38ea559b
Signed by: jhabdas GPG Key ID: B148B31154C75A74
7 changed files with 2009 additions and 9 deletions
  1. +3
    -0
      .dockerignore
  2. +2
    -0
      .gitignore
  3. +9
    -0
      README.md
  4. +14
    -0
      docker-compose.dev.yml
  5. +1
    -9
      docker-compose.yml
  6. +1953
    -0
      package-lock.json
  7. +27
    -0
      package.json

+ 3
- 0
.dockerignore View File

@ -1,3 +1,6 @@
.*
*.yml
*.md
*.json
volumes
node_modules

+ 2
- 0
.gitignore View File

@ -1 +1,3 @@
.env
volumes
node_modules

+ 9
- 0
README.md View File

@ -60,6 +60,15 @@ Where `git.example.com` matches your host domain and `someuser` matches your Git
See the [Gitea Docs](https://docs.gitea.io/) for additional configuration options. For support head over to the [Gitea Forums](https://discourse.gitea.io).
### Development
For development install configure Docker on your machine:
- [Get started with Docker for Mac](https://docs.docker.com/docker-for-mac/)
- [Get started with Docker for Windows](https://docs.docker.com/docker-for-windows/)
Run `docker-compose up` to start the app on `localhost:80`. See [Basic Usage](#basic-usage) for additional commands.
## License
Copyright (C) 2018 Josh Habdas <jhabdas@protonmail.com>

+ 14
- 0
docker-compose.dev.yml View File

@ -0,0 +1,14 @@
version: "2.1"
services:
gitea:
image: gitea/gitea:latest
volumes:
- ./volumes/data/gitea:/data
ports:
- "80:3000"
db:
volumes:
- ./volumes/data/postgres:/var/lib/postgresql/data
ports:
- "5432:5432"

+ 1
- 9
docker-compose.yml View File

@ -1,15 +1,7 @@
#
# Copyright (c) 2018, 13AMDq9isKtQTxMQG4w7Yo7cEhqKAqQ4Lz
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
version: "2.1"
services:
gitea:
image: gitea/gitea:latest
image: gitea/gitea:1.5
depends_on:
db:
condition: service_healthy

+ 1953
- 0
package-lock.json
File diff suppressed because it is too large
View File


+ 27
- 0
package.json View File

@ -0,0 +1,27 @@
{
"name": "high-tea",
"version": "1.0.0",
"description": "Self-hosted git server with Docker, Gitea, Postgres and Traefik",
"scripts": {
"start": "docker-compose up -d",
"debug": "docker-compose up -d && docker-compose logs -f --tail=10",
"release": "standard-version --sign"
},
"repository": {
"type": "git",
"url": "https://git.habd.as/comfusion/high-tea.git"
},
"keywords": [
"git",
"gitea",
"docker",
"postres",
"traefik"
],
"author": "Josh Habdas",
"license": "WTFPL",
"dependencies": {},
"devDependencies": {
"standard-version": "^4.4.0"
}
}

Loading…
Cancel
Save