Browse Source

init && ajout du script docker-compose.yml

Lou 3 years ago
commit
ed1c71d480
2 changed files with 14 additions and 0 deletions
  1. 0
    0
      docker-compose/docker-compose.yml
  2. 14
    0
      docker-compose/init.sh

+ 0
- 0
docker-compose/docker-compose.yml View File


+ 14
- 0
docker-compose/init.sh View File

@@ -0,0 +1,14 @@
1
+echo "Déploiement de Gitea"
2
+echo "Installation des dépendances"
3
+apt update && apt dist-upgrade
4
+apt install -y --no-recommand apt-transport-https ca-certificates curl gnupg lsb-release docker docker-compose
5
+read -p "Port : " port
6
+echo "version:\1.0\"
7
+services:
8
+    gitea:
9
+        image: gitea/gitea:1.15.6
10
+	container_name: gitea-1.15.6
11
+	ports:
12
+	    -$port:$port
13
+	restart: unless-stopped
14
+"> docker-compose.yml

Loading…
Cancel
Save