33 lines
573 B
YAML
33 lines
573 B
YAML
|
version: "3"
|
||
|
|
||
|
networks:
|
||
|
gitea:
|
||
|
external: false
|
||
|
|
||
|
services:
|
||
|
server:
|
||
|
image: gitea/gitea:1.18.1
|
||
|
container_name: gitea
|
||
|
env_file: .env
|
||
|
restart: always
|
||
|
networks:
|
||
|
- gitea
|
||
|
volumes:
|
||
|
- ./config:/data/gitea/conf
|
||
|
- ./data:/data
|
||
|
- /etc/timezone:/etc/timezone:ro
|
||
|
- /etc/localtime:/etc/localtime:ro
|
||
|
ports:
|
||
|
- "3003:3000"
|
||
|
- "222:22"
|
||
|
depends_on:
|
||
|
- db
|
||
|
|
||
|
db:
|
||
|
image: postgres:14
|
||
|
restart: always
|
||
|
env_file: .env
|
||
|
networks:
|
||
|
- gitea
|
||
|
volumes:
|
||
|
- ./postgres:/var/lib/postgresql/data
|