Compare commits

..

No commits in common. "50bb80bbb688e5fbcbf183325ac30d70267df18c" and "ff9bb06bfd678ced3d5829c0d468ceb7d54a20cb" have entirely different histories.

2 changed files with 8 additions and 6 deletions

View File

@ -2,13 +2,13 @@ version: "3"
services: services:
app: app:
image: gitea/gitea:${GITEA_VERSION} container_name: ${SERVICE_NAME}_gitea
restart: unless-stopped
depends_on: depends_on:
- db - db
environment: environment:
- USER_GID=${USER_GID} - USER_GID=${USER_GID}
- USER_UID=${USER_UID} - USER_UID=${USER_UID}
image: ${GITEA_VERSION}
labels: labels:
- traefik.docker.network=traefik-proxy - traefik.docker.network=traefik-proxy
- traefik.enable=true - traefik.enable=true
@ -29,6 +29,7 @@ services:
networks: networks:
- internal - internal
- traefik-proxy - traefik-proxy
restart: unless-stopped
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro - /etc/timezone:/etc/timezone:ro
@ -37,15 +38,16 @@ services:
ports: ports:
- ${SSH_PORT}:22 - ${SSH_PORT}:22
db: db:
image: mariadb:${MYSQL_VERSION} container_name: ${SERVICE_NAME}_mysql
restart: unless-stopped
environment: environment:
- MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_PASSWORD=${MYSQL_PASSWORD} - MYSQL_PASSWORD=${MYSQL_PASSWORD}
- MYSQL_RANDOM_ROOT_PASSWORD=yes - MYSQL_RANDOM_ROOT_PASSWORD=yes
- MYSQL_USER=${MYSQL_USER} - MYSQL_USER=${MYSQL_USER}
image: ${MYSQL_VERSION}
networks: networks:
- internal - internal
restart: unless-stopped
volumes: volumes:
- ./data/mysql:/var/lib/mysql - ./data/mysql:/var/lib/mysql

View File

@ -1,8 +1,8 @@
GITEA_VERSION=latest GITEA_VERSION=gitea/gitea:latest
MYSQL_DATABASE=gitea MYSQL_DATABASE=gitea
MYSQL_PASSWORD= MYSQL_PASSWORD=
MYSQL_USER=gitea MYSQL_USER=gitea
MYSQL_VERSION=10.6.3 MYSQL_VERSION=mariadb:10.6.3
SERVICE_NAME=git.mydomain.com SERVICE_NAME=git.mydomain.com
TRAEFIK_HOST=git.mydomain.com TRAEFIK_HOST=git.mydomain.com
TRAEFIK_ROUTER=git_mydomain_com TRAEFIK_ROUTER=git_mydomain_com