services/gitea/docker-compose.yml

26 lines
573 B
YAML
Raw Normal View History

version: "3.8"
volumes:
gitea:
2021-03-09 10:41:06 +01:00
name: ${GITEA_VOLUME_NAME:-gitea}
services:
gitea:
2021-03-09 10:41:06 +01:00
container_name: ${GITEA_CONTAINER_NAME:-gitea}
2021-03-09 10:42:13 +01:00
image: ${GITEA_IMAGE:-gitea/gitea:1.13.4}
restart: always
environment:
# - USER_UID=1000
# - USER_GID=1000
DB_TYPE: postgres
DB_HOST: postgres:5432
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