Doku: Docker-Stacks unter guests/vm101-ubuntu.
Compose und stack-relevante Config ohne Volumes/Daten; Secrets REDACTED. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
x-logging: &default-logging
|
||||
driver: json-file
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "3"
|
||||
|
||||
networks:
|
||||
gitea:
|
||||
external: false
|
||||
docbr0:
|
||||
external: true
|
||||
|
||||
services:
|
||||
server:
|
||||
logging: *default-logging
|
||||
image: gitea/gitea:latest
|
||||
environment:
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
- DB_TYPE=mysql
|
||||
- DB_HOST=db:3306
|
||||
- DB_NAME=gitea
|
||||
- DB_USER=gitea
|
||||
- DB_PASSWD=REDACTED
|
||||
restart: always
|
||||
networks:
|
||||
gitea:
|
||||
docbr0:
|
||||
ipv4_address: 10.2.2.22
|
||||
volumes:
|
||||
- ./gitea:/data
|
||||
depends_on:
|
||||
- db
|
||||
|
||||
db:
|
||||
logging: *default-logging
|
||||
image: mysql:5.7
|
||||
restart: always
|
||||
environment:
|
||||
- MYSQL_ROOT_PASSWORD=REDACTED
|
||||
- MYSQL_USER=gitea
|
||||
- MYSQL_PASSWORD=REDACTED
|
||||
- MYSQL_DATABASE=gitea
|
||||
networks:
|
||||
- gitea
|
||||
volumes:
|
||||
- ./mysql:/var/lib/mysql
|
||||
Reference in New Issue
Block a user