2020-05-15 23:34:50 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
gitea:
|
2021-03-09 10:41:06 +01:00
|
|
|
name: ${GITEA_VOLUME_NAME:-gitea}
|
2020-05-15 23:34:50 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
gitea:
|
2021-03-09 10:41:06 +01:00
|
|
|
container_name: ${GITEA_CONTAINER_NAME:-gitea}
|
2022-03-07 11:20:33 +01:00
|
|
|
image: ${GITEA_IMAGE:-gitea/gitea:1.16.3}
|
2020-05-15 23:34:50 +02:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
# - USER_UID=1000
|
|
|
|
# - USER_GID=1000
|
|
|
|
DB_TYPE: postgres
|
2022-01-26 11:09:23 +01:00
|
|
|
DB_HOST: ${POSTGRES_CONTAINER_NAME:-postgres}:5432 # Default name is same as ../postgres/docker-compose.yml:8
|
2020-05-15 23:34:50 +02:00
|
|
|
DB_NAME: ${POSTGRES_DB}
|
|
|
|
DB_USER: ${POSTGRES_USER}
|
|
|
|
DB_PASSWD: ${POSTGRES_PASSWORD}
|
|
|
|
volumes:
|
|
|
|
- gitea:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
depends_on:
|
|
|
|
- postgres
|