moved image name to docker-compose.yml, only version in .env

This commit is contained in:
Bryan Joshua Pedini 2022-03-26 15:27:20 +01:00
parent d210f75826
commit 50bb80bbb6
2 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@ version: "3"
services: services:
app: app:
image: ${GITEA_VERSION} image: gitea/gitea:${GITEA_VERSION}
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- db - db
@ -37,7 +37,7 @@ services:
ports: ports:
- ${SSH_PORT}:22 - ${SSH_PORT}:22
db: db:
image: ${MYSQL_VERSION} image: mariadb:${MYSQL_VERSION}
restart: unless-stopped restart: unless-stopped
environment: environment:
- MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_DATABASE=${MYSQL_DATABASE}

View File

@ -1,8 +1,8 @@
GITEA_VERSION=gitea/gitea:latest GITEA_VERSION=latest
MYSQL_DATABASE=gitea MYSQL_DATABASE=gitea
MYSQL_PASSWORD= MYSQL_PASSWORD=
MYSQL_USER=gitea MYSQL_USER=gitea
MYSQL_VERSION=mariadb:10.6.3 MYSQL_VERSION=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