Compare commits
2 Commits
ff9bb06bfd
...
50bb80bbb6
Author | SHA1 | Date | |
---|---|---|---|
50bb80bbb6 | |||
d210f75826 |
@ -2,13 +2,13 @@ version: "3"
|
||||
|
||||
services:
|
||||
app:
|
||||
container_name: ${SERVICE_NAME}_gitea
|
||||
image: gitea/gitea:${GITEA_VERSION}
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- db
|
||||
environment:
|
||||
- USER_GID=${USER_GID}
|
||||
- USER_UID=${USER_UID}
|
||||
image: ${GITEA_VERSION}
|
||||
labels:
|
||||
- traefik.docker.network=traefik-proxy
|
||||
- traefik.enable=true
|
||||
@ -29,7 +29,6 @@ services:
|
||||
networks:
|
||||
- internal
|
||||
- traefik-proxy
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- /etc/timezone:/etc/timezone:ro
|
||||
@ -38,16 +37,15 @@ services:
|
||||
ports:
|
||||
- ${SSH_PORT}:22
|
||||
db:
|
||||
container_name: ${SERVICE_NAME}_mysql
|
||||
image: mariadb:${MYSQL_VERSION}
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
- MYSQL_DATABASE=${MYSQL_DATABASE}
|
||||
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
|
||||
- MYSQL_RANDOM_ROOT_PASSWORD=yes
|
||||
- MYSQL_USER=${MYSQL_USER}
|
||||
image: ${MYSQL_VERSION}
|
||||
networks:
|
||||
- internal
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ./data/mysql:/var/lib/mysql
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
GITEA_VERSION=gitea/gitea:latest
|
||||
GITEA_VERSION=latest
|
||||
MYSQL_DATABASE=gitea
|
||||
MYSQL_PASSWORD=
|
||||
MYSQL_USER=gitea
|
||||
MYSQL_VERSION=mariadb:10.6.3
|
||||
MYSQL_VERSION=10.6.3
|
||||
SERVICE_NAME=git.mydomain.com
|
||||
TRAEFIK_HOST=git.mydomain.com
|
||||
TRAEFIK_ROUTER=git_mydomain_com
|
||||
|
Loading…
Reference in New Issue
Block a user