CMDB-Server/docker/gitea/docker-compose.yml

48 lines
938 B
YAML

services:
gitea_app:
container_name: gitea_app
image: gitea/gitea:1.21.11
ports:
- "3000:3000"
environment:
DB_TYPE: postgres
DB_HOST: gitea_db:5432
DB_NAME: gitea
DB_USER: gitea
DB_PASSWD: gitea
USER_UID: 1000
USER_GID: 1000
TZ: Asia/Tokyo
volumes:
- ./data:/data
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- cmdb_net
gitea_db:
container_name: gitea_db
image: postgres:16.2-bullseye
environment:
POSTGRES_USER: gitea
POSTGRES_PASSWORD: gitea
POSTGRES_DB: gitea
TZ: Asia/Tokyo
volumes:
- ./db:/var/lib/postgresql/data
restart: always
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
networks:
- cmdb_net
networks:
cmdb_net:
external: true