Example docker-compose file multiple sites
Posté le 15. Juillet 2021  (Dernière modification le 08. Janvier 2023 )
1 minutes • 132 mots
Installer plusieurs sites sur un même VPS.
créaction d’un network
docker network create nginx-proxy
création du reverse proxy
version: "3"
services:
nginx-proxy:
image: jwilder/nginx-proxy
container_name: nginx-proxy
ports:
- "80:80"
volumes:
- /var/run/docker.sock:/tmp/docker.sock:ro
networks:
default:
name: nginx-proxy
mise a jour du fichier dns local hosts
C:\Windows\System32\drivers\etc\hosts
On rajoute les deux lignes
127.0.0.1 vps1.local
127.0.0.1 vps2.local
on vide la cache du DNS local afin de forcer la lecture du fichier hosts
ipconfig /flushdns
N.B. The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g.
.emoji {
font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols;
}