2024-07-06 21:10:44 +00:00
|
|
|
services:
|
|
|
|
db:
|
|
|
|
image: mariadb:10-focal
|
|
|
|
#command: '--default-authentication-plugin=mysql_native_password'
|
|
|
|
restart: always
|
|
|
|
healthcheck:
|
|
|
|
test: ['CMD-SHELL', 'mysqladmin ping -h 127.0.0.1 --password="rootpass" --silent']
|
|
|
|
interval: 3s
|
|
|
|
retries: 5
|
|
|
|
start_period: 30s
|
|
|
|
volumes:
|
|
|
|
- db-data:/var/lib/mysql
|
|
|
|
- "./db/init:/docker-entrypoint-initdb.d/"
|
|
|
|
networks:
|
|
|
|
- backnet
|
|
|
|
environment:
|
|
|
|
#- MYSQL_DATABASE=gitea
|
|
|
|
#- MYSQL_USER=gitea
|
|
|
|
#- MYSQL_PASSWORD=gitea
|
2024-07-07 00:06:07 +00:00
|
|
|
#- MYSQL_ROOT_PASSWORD=rootpass
|
|
|
|
- MYSQL_ROOT_PASSWORD=${DOTENV_MYSQL_ROOT_PASSWORD}
|
2024-07-06 21:10:44 +00:00
|
|
|
expose:
|
|
|
|
- 3306
|
|
|
|
- 33060
|
|
|
|
|
|
|
|
backend:
|
|
|
|
build:
|
|
|
|
context: backend
|
|
|
|
target: builder
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- MYSQL_USER=flasku
|
2024-07-07 00:06:07 +00:00
|
|
|
#- MYSQL_PASSWORD=flaskp
|
|
|
|
- MYSQL_PASSWORD=${DOTENV_MYSQL_FLASK_PASSWORD}
|
2024-07-06 21:10:44 +00:00
|
|
|
#ports:
|
|
|
|
# - 8000:8000
|
|
|
|
expose:
|
|
|
|
- 8000
|
|
|
|
networks:
|
|
|
|
- backnet
|
|
|
|
- frontnet
|
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
|
|
|
|
gutsub:
|
|
|
|
image: gitea/gitea:latest
|
|
|
|
container_name: gitea
|
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- USER_UID=1000
|
|
|
|
- USER_GID=1000
|
|
|
|
- GITEA__database__DB_TYPE=mysql
|
|
|
|
- GITEA__database__HOST=db:3306
|
|
|
|
- GITEA__database__NAME=gitea
|
|
|
|
- GITEA__database__USER=gitea
|
2024-07-07 00:06:07 +00:00
|
|
|
- GITEA__database__PASSWD=${DOTENV_MYSQL_GITEA_PASSWORD}
|
2024-07-06 21:10:44 +00:00
|
|
|
- GITEA__repository__DEFAULT_BRANCH=master
|
|
|
|
# To disable new users after setup:
|
|
|
|
#- GITEA__service__DISABLE_REGISTRATION=false
|
|
|
|
networks:
|
|
|
|
- backnet
|
|
|
|
- frontnet
|
|
|
|
volumes:
|
|
|
|
- ./gitea:/data
|
|
|
|
- /etc/timezone:/etc/timezone:ro
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
#ports:
|
|
|
|
# - "3000:3000"
|
|
|
|
# - "222:22"
|
|
|
|
depends_on:
|
|
|
|
db:
|
|
|
|
condition: service_healthy
|
|
|
|
|
|
|
|
|
|
|
|
proxy:
|
|
|
|
build: proxy
|
|
|
|
restart: always
|
|
|
|
volumes:
|
|
|
|
- /home/finn/d/cert/var/lib/letsencrypt:/var/lib/letsencrypt
|
|
|
|
- /home/finn/d/cert/etc/letsencrypt:/etc/letsencrypt
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
depends_on:
|
|
|
|
- backend
|
|
|
|
networks:
|
|
|
|
- frontnet
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
db-data:
|
|
|
|
|
|
|
|
networks:
|
|
|
|
backnet:
|
|
|
|
frontnet:
|