2022-07-28 17:46:12 +00:00
|
|
|
version: "3.7"
|
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
2022-10-14 16:33:24 +00:00
|
|
|
image: gitea/gitea:1.17.2
|
2022-07-28 17:46:12 +00:00
|
|
|
container_name: gitea
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- GITEA__database__DB_TYPE=postgres
|
|
|
|
- GITEA__database__HOST=gitea-db:5432
|
|
|
|
- GITEA__database__NAME=gitea
|
|
|
|
- GITEA__database__USER=gitea
|
|
|
|
- GITEA__database__PASSWD=gitea
|
|
|
|
restart: unless-stopped
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/gitea:/data
|
|
|
|
ports:
|
|
|
|
- ${APP_PORT}:3000
|
|
|
|
- "222:22"
|
|
|
|
depends_on:
|
|
|
|
- gitea-db
|
|
|
|
|
|
|
|
gitea-db:
|
|
|
|
container_name: gitea-db
|
|
|
|
image: postgres:14
|
|
|
|
restart: unless-stopped
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=gitea
|
|
|
|
- POSTGRES_PASSWORD=gitea
|
|
|
|
- POSTGRES_DB=gitea
|
|
|
|
volumes:
|
|
|
|
- ${APP_DATA_DIR}/data/postgres:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
- tipi_main_network
|