30 lines
576 B
Docker
30 lines
576 B
Docker
version: "3.6"
|
|
|
|
networks:
|
|
gitea:
|
|
external: false
|
|
|
|
services:
|
|
server:
|
|
image: gitea/gitea:1.13.2
|
|
container_name: gitea
|
|
environment:
|
|
USER_UID: 1000
|
|
USER_GID: 1000
|
|
DB_TYPE: postgres
|
|
DB_HOST: db:5432
|
|
DB_NAME: zpzc-s434686-db
|
|
DB_USER: zpzc-s434686-user
|
|
DB_PASSWD: zpzc-s434686-password
|
|
restart: always
|
|
networks:
|
|
- gitea
|
|
volumes:
|
|
- ./gitea:/data
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
ports:
|
|
- "443:443"
|
|
- "222:22"
|
|
depends_on:
|
|
- db |