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

51 lines
1.1 KiB

4 years ago
version: "3.1"
services:
server:
image: ${GT_IMG:-gitea/gitea}:${GT_TAG:-latest}
container_name: ${GT_CONTAINER_NAME:gitea}
restart: ${GT_RESTART:-unless-stopped}
4 years ago
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}
4 years ago
container_name: ${DB_CONTAINER_NAME:-gitea-db}
restart: ${DB_RESTART:-unless-stopped}
stop_signal: ${DB_STOP_SIG:-SIGTERM}
stop_grace_period: ${DB_STOP_GRC:-10s}
4 years ago
environment:
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWD}
- POSTGRES_DB=${DB_NAME}
networks:
- gitea
volumes:
- ${LOCAL_STACK_DIR}/postgres:/var/lib/postgresql/data
4 years ago
networks:
default:
external:
name: ${NETWORK}
gitea:
external: false