30 lines
659 B
YAML
30 lines
659 B
YAML
version: "2"
|
|
|
|
networks:
|
|
gitea:
|
|
external: true
|
|
|
|
services:
|
|
server:
|
|
image: gitea/gitea:1.13.2
|
|
container_name: gitea
|
|
environment:
|
|
GITEA__database__DB_TYPE: postgres
|
|
GITEA__database__HOST: 10.0.0.2:5432
|
|
GITEA__database__NAME: zpzc-s434686-db
|
|
GITEA__database__USER: zpzc-s434686-user
|
|
GITEA__database__PASSWD: zpzc-s434686-password
|
|
restart: always
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- ./gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "3000:3000"
|
|
- "2222:2222"
|
|
- "443:443"
|
|
- "222:22"
|
|
- "80:3000"
|
|
- "22:2222" |