You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
조창제 40531820d1 업데이트 'docker-compose.yaml' 1 year ago 업데이트 '' 1 year ago
docker-compose.yaml 업데이트 'docker-compose.yaml' 1 year ago
output.jpg copy 1 year ago

Verified to work in Release

This project was derived from the gitea-postgres project in awesome-compose

No modifications were necessary for this project to run in Release.

To make this project run in Release, simply create a new application with this repository.

Gitea with PostgreSQL

This example defines one of the base setups for Gitea. More details on how to customize the installation and the compose file can be found in Gitea documentation.

Project structure:

├── docker-compose.yaml


    image: gitea/gitea:latest
      - 3000:3000
    image: postgres:alpine

When deploying this setup, docker-compose maps the gitea container port 3000 to the same port of the host as specified in the compose file.

Deploy with docker-compose

$ docker-compose up -d
Creating network "gitea-postgres_default" with the default driver
Creating gitea-postgres_db_1 ... done
Creating gitea-postgres_gitea_1 ... done
Attaching to gitea-postgres_db_1, gitea-postgres_gitea_1
Starting gitea-postgres_db_1 ... done
Starting gitea-postgres_gitea_1 ... done

Expected result

Check containers are running and the port mapping:

$ docker ps
CONTAINER ID        IMAGE                COMMAND                  CREATED             STATUS              PORTS                          NAMES
2f5624043da9        gitea/gitea:latest   "/usr/bin/entrypoint…"   56 seconds ago      Up 16 seconds       22/tcp,>3000/tcp gitea-postgres_gitea_1
86acc768453e        postgres:alpine      "docker-entrypoint.s…"   57 seconds ago      Up 17 seconds       5432/tcp                       gitea-postgres_db_1

Navigate to http://localhost:3000 in your web browser to access the installed Gitea service.


Stop and remove the containers

$ docker-compose down

To remove all Gitea data, delete the named volumes by passing the -v parameter:

$ docker-compose down -v