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.
docker-gitea/docker-compose.yml

48 lines
1.0 KiB

version: "3.1"
services:
server:
image: ${GT_IMG:-gitea/gitea}:${GT_TAG:-latest}
container_name: ${GT_CONTAINER_NAME}
restart: unless-stopped
networks:
- default
- gitea
volumes:
- ${LOCAL_STACK_DIR}/data:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "127.0.0.1:2222:22"
expose:
- "3000"
depends_on:
- db
env_file:
- gitea.env
environment:
- DB_TYPE=${DB_TYPE}
- DB_HOST=${DB_HOST}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWD=${DB_PASSWD}
db:
image: ${DB_IMG:-postgres}:${DB_TAG:-12.4}
container_name: ${DB_CONTAINER_NAME-gitea-db}
restart: unless-stopped
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWD}
- POSTGRES_DB=${DB_NAME}
networks:
- gitea
volumes:
- ${LOCAL_STACK_DIR}/postgres:/var/lib/postgresql/data
networks:
default:
external:
name: ${NETWORK}
gitea:
external: false