46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
YAML
version: "3"
|
|
|
|
services:
|
|
server:
|
|
image: gitea/gitea:1
|
|
environment:
|
|
- "USER_UID=0"
|
|
- "USER_GID=0"
|
|
- "DB_TYPE=postgres"
|
|
- "DB_HOST=db:5432"
|
|
- "DB_NAME=gitea"
|
|
- "DB_USER=gitea"
|
|
- "DB_PASSWD=gitea"
|
|
- "VIRTUAL_HOST=${DOMAIN}"
|
|
- "VIRTUAL_PORT=3000"
|
|
- "LETSENCRYPT_HOST=${DOMAIN}"
|
|
- "APP_NAME=Git"
|
|
- "DOMAIN=${DOMAIN}"
|
|
- "DISABLE_SSH=true"
|
|
restart: always
|
|
networks:
|
|
- default
|
|
- 10000-nginx-proxy_nginx-proxy
|
|
volumes:
|
|
- ./mnt/gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
depends_on:
|
|
- db
|
|
|
|
db:
|
|
image: postgres:9.6
|
|
restart: always
|
|
environment:
|
|
- "POSTGRES_USER=gitea"
|
|
- "POSTGRES_PASSWORD=gitea"
|
|
- "POSTGRES_DB=gitea"
|
|
expose:
|
|
- 5432
|
|
volumes:
|
|
- ./mnt/postgres:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
10000-nginx-proxy_nginx-proxy:
|
|
external: true
|