2021-04-09 13:27:46 +03:00
|
|
|
version: "2"
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
gitea-db:
|
|
|
|
driver: local
|
|
|
|
|
|
|
|
services:
|
|
|
|
server:
|
|
|
|
image: gitea/gitea:1
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- DB_TYPE=postgres
|
|
|
|
- DB_HOST=db:5432
|
|
|
|
- DB_NAME=gitea
|
|
|
|
- DB_USER=gitea
|
|
|
|
- DB_PASSWD=${DB_PASSWD}
|
|
|
|
- DOMAIN=${URL}
|
|
|
|
- SSH_DOMAIN=${URL}
|
|
|
|
- DISABLE_REGISTRATION=true
|
|
|
|
- VIRTUAL_HOST=${URL}
|
|
|
|
- VIRTUAL_PORT=3000
|
|
|
|
- LETSENCRYPT_HOST=${URL}
|
|
|
|
- LETSENCRYPT_EMAIL=svk@nuk-svk.ru
|
|
|
|
- ROOT_URL=https://${URL}
|
|
|
|
- REDIRECT_OTHER_PORT=true
|
|
|
|
- PORT_TO_REDIRECT=463
|
|
|
|
- ENABLE_PUSH_CREATE_USER=true
|
|
|
|
- ENABLE_PUSH_CREATE_ORG=true
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- gitea:/data
|
2021-04-09 14:02:14 +03:00
|
|
|
- gitea-backup:/backup
|
2021-04-09 13:27:46 +03:00
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
ports:
|
|
|
|
- "2222:22"
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
expose:
|
|
|
|
- 3000
|
|
|
|
|
|
|
|
db:
|
|
|
|
image: postgres:9.6
|
|
|
|
restart: always
|
|
|
|
env_file:
|
|
|
|
- .env
|
|
|
|
environment:
|
|
|
|
- POSTGRES_USER=gitea
|
|
|
|
- POSTGRES_PASSWORD=${DB_PASSWD}
|
|
|
|
- POSTGRES_DB=gitea
|
|
|
|
volumes:
|
|
|
|
- gitea-db:/var/lib/postgresql/data
|
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
external:
|
|
|
|
name: ${NETWORK}
|
|
|
|
volumes:
|
|
|
|
gitea:
|
|
|
|
gitea-db:
|
2021-04-09 14:02:14 +03:00
|
|
|
gitea-backup:
|