Фиксы композа

This commit is contained in:
2025-02-20 09:17:38 +08:00
parent 495e63b48c
commit e62e5d39a7

View File

@@ -14,19 +14,19 @@ volumes:
networks: networks:
network: network:
external: false driver: bridge
services: services:
gitea-server: gitea:
<<: *common-attributes <<: *common-attributes
container_name: gitea container_name: gitea
image: gitea/gitea:latest-rootless image: gitea/gitea:latest-rootless
environment: environment:
- GITEA__database__DB_TYPE=mysql - GITEA__database__DB_TYPE=mysql
- GITEA__database__HOST=gitea-db:3306 - GITEA__database__HOST=gitea-db:3306
- GITEA__database__NAME=${GITEA_DB_USER:?check your .env file} - GITEA__database__NAME=${GITEA_DB_NAME:?check your .env file}
- GITEA__database__USER=${GITEA_DB_PASSWORD:?check your .env file} - GITEA__database__USER=${GITEA_DB_USER:?check your .env file}
- GITEA__database__PASSWD=${GITEA_DB_NAME:?check your .env file} - GITEA__database__PASSWD=${GITEA_DB_PASSWORD:?check your .env file}
volumes: volumes:
# copy backup files first to pass them inside # copy backup files first to pass them inside
- ./gitea/app.ini:/etc/gitea/app.ini - ./gitea/app.ini:/etc/gitea/app.ini
@@ -53,25 +53,18 @@ services:
ports: ports:
- ${HOST_DB_PORT:-3306}:3306 - ${HOST_DB_PORT:-3306}:3306
opengist-server: opengist:
<<: *common-attributes <<: *common-attributes
image: thomiceli/opengist:latest image: thomiceli/opengist:latest
container_name: opengist container_name: opengist
environment: environment:
OG_DB_URI: mysql://${OG_DB_USER:?check your .env file}:${OG_DB_PASSWORD:?check your .env file}@opengist-db:3306/${OG_DB_NAME:-opengist} OG_DB_URI: mysql://${OG_DB_USER:?check your .env file}:${OG_DB_PASSWORD:?check your .env file}@opengist-db:3306/${OG_DB_NAME:-opengist}
# OG_GITEA_CLIENT_KEY: ${OG_GITEA_CLIENT_KEY}
# OG_GITEA_SECRET: ${OG_GITEA_SECRET}
# OG_GITEA_URL: http://localhost:${GITEA_HOST_WEB_PORT:-8080}
OG_CUSTOM_STATIC_LINK_0_NAME: Gitea
OG_CUSTOM_STATIC_LINK_0_PATH: http://localhost:${GITEA_HOST_WEB_PORT:-8080}
ports: ports:
- ${OG_HOST_WEB_PORT:-8081}:6157 - ${OG_HOST_WEB_PORT:-8081}:6157
- ${OG_HOST_SSH_PORT:-223}:2222 - ${OG_HOST_SSH_PORT:-223}:2222
volumes: volumes:
# copy backup files first to pass them inside # copy backup files first to pass them inside
- ./opengist/data:/opengist - ./opengist/data:/opengist
links:
- gitea-server
depends_on: depends_on:
- opengist-db - opengist-db