last config

This commit is contained in:
Quentin 2023-02-21 20:25:42 +00:00
parent cc6f1d4952
commit bf156c46ad
3 changed files with 51 additions and 21 deletions

View file

@ -377,28 +377,30 @@ See here: https://docs.drone.io/secret/repository/
And then add this to your `.drone.yml`: And then add this to your `.drone.yml`:
```yaml ```yaml
- name: upload - name: upload
image: plugins/s3 image: plugins/s3
settings: settings:
bucket: my-blog bucket: guide
access_key: endpoint: http://s3.vimaire.machine.dufour.io
from_secret: aws_access_key_id region: garage
secret_key: access_key:
from_secret: aws_secret_acess_key from_secret: aws_access_key_id
source: _site/**/* secret_key:
target: / from_secret: aws_secret_acess_key
source: public/**/*
target: /
strip_prefix: public/
``` ```
## Profit ## Profit
Your blog should be available at this URL: http://my-blog.web.localhost:3902 Your blog should be available at this URL: http://guide.web.vimaire.machine.dufour.io
You can administrate it at this URL: http://my-blog.web.localhost:3902/admin/ You can administrate it at this URL: http://guide.web.vimaire.machine.dufour.io/admin/
Publishing an article will trigger a build, you can follow it: http://localhost:3002/quentin/my-blog/
## TODO ## TODO
- [ ] Nettoyer les inter-connexions entre les services pour ne pas avoir à drop iptables - [X] Nettoyer les inter-connexions entre les services pour ne pas avoir à drop iptables -> passé en IPv6 avec un network dédié
- [ ] Voir comment speed up le build - [ ] Voir comment speed up le build
- [ ] Peut-être passer la démo sur Hugo (aiderait le point précédent) - [ ] Peut-être passer la démo sur Hugo (aiderait le point précédent)
- [ ] Tester avec des templates plus complexes (avec des images en bannière) - [ ] Tester avec des templates plus complexes (avec des images en bannière)
- [ ] Porter ce test sur le guide Zola avec les nested collections - [X] Porter ce test sur le guide Zola avec les nested collections -> Failed, trop buggy encore

View file

@ -1,5 +1,3 @@
version: "3.4"
services: services:
reverse: reverse:
image: nginx:1.23.3 image: nginx:1.23.3
@ -9,6 +7,9 @@ services:
- ./nginx.conf:/etc/nginx/nginx.conf - ./nginx.conf:/etc/nginx/nginx.conf
ports: ports:
- "80:80" - "80:80"
networks:
localnet:
ipv6_address: fd00::2
links: links:
- "gitea:gitea" - "gitea:gitea"
- "teabag:teabag" - "teabag:teabag"
@ -19,6 +20,9 @@ services:
# Patched image required for Gitea version < 1.19 # Patched image required for Gitea version < 1.19
image: superboum/gitea:1.17.4-cors image: superboum/gitea:1.17.4-cors
container_name: gitea container_name: gitea
networks:
localnet:
ipv6_address: fd00::3
environment: environment:
- USER_UID=1000 - USER_UID=1000
- USER_GID=1000 - USER_GID=1000
@ -38,19 +42,24 @@ services:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
ports: ports:
- "2222:22" - "2222:22"
teabag: teabag:
image: ghcr.io/denyskon/teabag:latest image: ghcr.io/denyskon/teabag:latest
container_name: teabag container_name: teabag
networks:
localnet:
ipv6_address: fd00::4
restart: always restart: always
volumes: volumes:
- ./teabag.env:/etc/teabag/teabag.env - ./teabag.env:/etc/teabag/teabag.env
extra_hosts:
- "git.vimaire.machine.dufour.io:192.168.1.107"
drone: drone:
image: drone/drone:2 image: drone/drone:2
container_name: drone container_name: drone
restart: always restart: always
networks:
localnet:
ipv6_address: fd00::5
environment: environment:
- DRONE_GITEA_CLIENT_ID=c0f72ac9-defc-4c0e-a118-9ac36f1f336a - DRONE_GITEA_CLIENT_ID=c0f72ac9-defc-4c0e-a118-9ac36f1f336a
- DRONE_GITEA_CLIENT_SECRET=gto_fillslosv252xrb7mpkgo5k6boktyw4vtympxlwyzsydeuwuqaia - DRONE_GITEA_CLIENT_SECRET=gto_fillslosv252xrb7mpkgo5k6boktyw4vtympxlwyzsydeuwuqaia
@ -59,13 +68,16 @@ services:
- DRONE_SERVER_HOST=drone.vimaire.machine.dufour.io - DRONE_SERVER_HOST=drone.vimaire.machine.dufour.io
- DRONE_SERVER_PROTO=http - DRONE_SERVER_PROTO=http
- DRONE_SERVER_PORT=:3002 - DRONE_SERVER_PORT=:3002
extra_hosts: volumes:
- "git.vimaire.machine.dufour.io:192.168.1.107" - ./drone:/data
runner: runner:
image: drone/drone-runner-docker:1 image: drone/drone-runner-docker:1
container_name: runner container_name: runner
restart: always restart: always
networks:
localnet:
ipv6_address: fd00::6
environment: environment:
- DRONE_RPC_PROTO=http - DRONE_RPC_PROTO=http
- DRONE_RPC_HOST=drone.vimaire.machine.dufour.io - DRONE_RPC_HOST=drone.vimaire.machine.dufour.io
@ -73,6 +85,7 @@ services:
- DRONE_RUNNER_CAPACITY=1 - DRONE_RUNNER_CAPACITY=1
- DRONE_RUNNER_NAME=dummy - DRONE_RUNNER_NAME=dummy
- DRONE_HTTP_BIND=3003 - DRONE_HTTP_BIND=3003
- DRONE_RUNNER_NETWORKS=static-publishing-platform_localnet
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
@ -80,7 +93,17 @@ services:
image: dxflrs/garage:v0.8.1 image: dxflrs/garage:v0.8.1
container_name: garage container_name: garage
restart: always restart: always
networks:
localnet:
ipv6_address: fd00::7
volumes: volumes:
- ./garage.toml:/etc/garage.toml - ./garage.toml:/etc/garage.toml
- ./garage:/var/lib/garage/ - ./garage:/var/lib/garage/
networks:
localnet:
enable_ipv6: true
ipam:
driver: default
config:
- subnet: "fd00::/64"

View file

@ -36,6 +36,7 @@ http {
server { server {
listen 80; listen 80;
listen [::]:80;
client_max_body_size 0; client_max_body_size 0;
server_name git.vimaire.machine.dufour.io; server_name git.vimaire.machine.dufour.io;
@ -50,6 +51,7 @@ http {
server { server {
listen 80; listen 80;
listen [::]:80;
client_max_body_size 0; client_max_body_size 0;
server_name teabag.vimaire.machine.dufour.io; server_name teabag.vimaire.machine.dufour.io;
@ -65,6 +67,7 @@ http {
server { server {
listen 80; listen 80;
listen [::]:80;
client_max_body_size 0; client_max_body_size 0;
server_name drone.vimaire.machine.dufour.io; server_name drone.vimaire.machine.dufour.io;
@ -80,6 +83,7 @@ http {
server { server {
listen 80; listen 80;
listen [::]:80;
client_max_body_size 0; client_max_body_size 0;
server_name *.web.vimaire.machine.dufour.io; server_name *.web.vimaire.machine.dufour.io;
@ -96,6 +100,7 @@ http {
server { server {
listen 80; listen 80;
listen [::]:80;
client_max_body_size 0; client_max_body_size 0;
server_name *.s3.vimaire.machine.dufour.io s3.vimaire.machine.dufour.io; server_name *.s3.vimaire.machine.dufour.io s3.vimaire.machine.dufour.io;