49 lines
1003 B
YAML
49 lines
1003 B
YAML
services:
|
|
db:
|
|
image: postgres:13.1
|
|
container_name: gitea-db
|
|
restart: always
|
|
volumes:
|
|
- db:/var/lib/postgresql/data
|
|
env_file:
|
|
- db.env
|
|
networks:
|
|
- gitea
|
|
|
|
app:
|
|
image: gitea/gitea:latest
|
|
container_name: gitea-app
|
|
depends_on:
|
|
- db
|
|
restart: always
|
|
volumes:
|
|
- data:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
env_file:
|
|
- app.env
|
|
environment:
|
|
- USER_UID=1000
|
|
- USER_GID=1000
|
|
- SSH_PORT=222
|
|
- SSH_LISTEN_PORT=22
|
|
- GITEA__webhook__ALLOWED_HOST_LIST=loopback,jenkins
|
|
networks:
|
|
- gitea
|
|
- reverse-proxy
|
|
ports:
|
|
- "222:22"
|
|
|
|
volumes:
|
|
db:
|
|
external: true
|
|
name: gitea_db
|
|
data:
|
|
external: true
|
|
name: gitea_data
|
|
|
|
networks:
|
|
gitea:
|
|
reverse-proxy:
|
|
external: true
|