Compare commits

...

4 Commits
v0.1.7d ... rm

Author SHA1 Message Date
38a73a4c5b reseau gitea => app 2024-02-09 09:26:16 +01:00
8d0119c4bb Chgt container_name et network 2024-02-09 09:15:49 +01:00
9a8cbf4d6c typo diverses 2024-02-09 00:16:20 +01:00
141730bc73 typo boxtype 2024-02-09 00:02:04 +01:00
2 changed files with 10 additions and 10 deletions

View File

@ -12,7 +12,7 @@ Vagrant.configure("2") do |config|
# Every Vagrant development environment requires a box. You can search for
# boxes at https://vagrantcloud.com/search.
config.vm.box = "debian/bookworm"
config.vm.box = "debian/bookworm64"
config.vm.hostname = "gitea-traefik"
# Disable automatic box update checking. If you disable this, then

View File

@ -82,7 +82,8 @@ cat > ./config/dynamic.yml <<EOT
http:
routers:
traefik:
rule: "Host(`traefik.docker.localhost`)"
# rule: "Host(`traefik.docker.localhost`)"
rule: "Host(`gitea.local`)"
service: "api@internal"
tls:
domains:
@ -100,7 +101,7 @@ tls:
EOT
cat > gitea.yml <<'EOT'
cat > gitea.yml <<-'EOT'
version: '2'
volumes:
@ -110,7 +111,7 @@ volumes:
networks:
proxy:
external: true
gitea:
app:
external: false
services:
@ -122,8 +123,7 @@ services:
volumes:
- db:/var/lib/mysql
networks:
- gitea
traefik-enable: false
- app
environment:
- MYSQL_ROOT_PASSWORD=Azerty1+
- MYSQL_PASSWORD=Azerty1+
@ -131,8 +131,8 @@ services:
- MYSQL_USER=gitea
app:
image: gitea
container_name: gitea
image: gitea/gitea
container_name: app
restart: always
# ports:
# - 8081:80
@ -143,7 +143,7 @@ services:
- gitea:/var/www/html
networks:
- proxy
- gitea
- app
labels:
- "traefik.enable=true"
- "traefik.http.routers.app.rule=Host(`gitea.local`)"
@ -155,7 +155,7 @@ services:
- MYSQL_DATABASE=gitea
- MYSQL_USER=gitea
- MYSQL_HOST=db:3006
'EOT'
EOT
docker network create proxy
docker compose -f traefik.yml up -d