From 1faaa0c4f7960a4e3dfc6fab02952d6e28f1b148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Fernandes?= Date: Sat, 25 Feb 2023 15:06:52 +0000 Subject: [PATCH] a funcionar --- .gitignore | 1 + docker/docker-compose.yaml | 49 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .gitignore create mode 100644 docker/docker-compose.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..be8ae6d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*/.env \ No newline at end of file diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml new file mode 100644 index 0000000..cd8186d --- /dev/null +++ b/docker/docker-compose.yaml @@ -0,0 +1,49 @@ +version: '3' +services: + nginx: + image: nginx:latest + volumes: + - nginx-conf.d:/etc/nginx/conf.d + - letsencrypt-conf:/etc/letsencrypt + - certbot-www:/var/www/certbot + ports: + - 443:443 + - 80:80 + command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'" + restart: unless-stopped + duplicati: + image: duplicati/duplicati:latest + volumes: + - duplicati_data:/data + - nginx-conf.d:/backup/nginx-conf.d:ro + - letsencrypt-conf:/backup/letsencrypt-conf:ro + - certbot-www:/backup/certbot-www:ro + - duplicati_data:/backup/duplicati_data:ro + ports: + - 8205:8200 + restart: unless-stopped + code-server: + image: lscr.io/linuxserver/code-server:latest + environment: + #- PUID=1000 + #- PGID=1000 + - TZ=Europe/London + - PASSWORD=${ADMIN_PASSWORD} #optional + #- HASHED_PASSWORD= #optional + #- SUDO_PASSWORD=password #optional + #- SUDO_PASSWORD_HASH= #optional + #- PROXY_DOMAIN=code-server.my.domain #optional + - DEFAULT_WORKSPACE=/config/workspace #optional + volumes: + - code-server_config:/config + - nginx-conf.d:/nginx/conf.d + - letsencrypt-conf:/letsencrypt/conf + ports: + - 8444:8443 + restart: unless-stopped +volumes: + nginx-conf.d: + letsencrypt-conf: + certbot-www: + duplicati_data: + code-server_config: \ No newline at end of file