From fbc86cec8052266eee3a7efca00a8098de259194 Mon Sep 17 00:00:00 2001 From: zino Date: Tue, 28 Nov 2023 13:16:47 +0100 Subject: [PATCH] modified --- .gitignore | 5 +++++ docker-compose.yml | 37 +++++++++++++++++++------------------ volumes/.gitkeep | 0 3 files changed, 24 insertions(+), 18 deletions(-) create mode 100644 .gitignore create mode 100644 volumes/.gitkeep diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c57f39 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Ignore everything in the volume folder +volume/* + +# But not the .gitkeep file +!volume/.gitkeep \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 1948967..f577518 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,11 +1,7 @@ -version: "3" - -networks: - gitea: - external: false +version: "3.8" services: - server: + gitea: image: gitea/gitea:latest container_name: gitea environment: @@ -16,33 +12,38 @@ services: - GITEA__database__NAME=gitea - GITEA__database__USER=gitea - GITEA__database__PASSWD=A68nMCsvzyvueYwE - - SSH_DOMAIN=gitea.provenue.de + - SSH_DOMAIN=git.zinomedia.de - ROOT_URL=https://git.zinomedia.de - SSH_PORT=222 - SSH_LISTEN_PORT=22 - restart: "no" - networks: - - gitea + restart: "unless-stopped" volumes: - - /home/zino/projects/dockers/gitea/volumes/gitea-data:/data + - ./volumes/gitea-data:/data - /etc/timezone:/etc/timezone:ro - /etc/localtime:/etc/localtime:ro ports: - "8083:3000" - "222:22" depends_on: - - db - - db: + - db + networks: + - web + + gitea-mariadb: image: linuxserver/mariadb:latest container_name: gitea-mariadb - restart: "no" + restart: "unless-stopped" environment: - MYSQL_ROOT_PASSWORD=gitea - MYSQL_USER=gitea - MYSQL_PASSWORD=A68nMCsvzyvueYwE - MYSQL_DATABASE=gitea - networks: - - gitea volumes: - - /home/zino/projects/dockers/gitea/volumes/db:/config \ No newline at end of file + - ./volumes/db:/config + networks: + - web + +networks: + web: + external: true + name: web diff --git a/volumes/.gitkeep b/volumes/.gitkeep new file mode 100644 index 0000000..e69de29