This commit is contained in:
victor 2025-02-21 11:13:45 +01:00
parent 3e291b1892
commit 9ee16bb724
3 changed files with 7 additions and 8 deletions

View File

@ -13,9 +13,10 @@ services:
- FSETID
- SETUID
# Prevents gaining new privileges
devices:
- /dev/kvm
# Prevents gaining new privileges
security_opt:
- no-new-privileges
@ -25,11 +26,9 @@ services:
nginx-site:
container_name: "nginx-site"
restart: always
build:
context: ./nginx
dockerfile: Dockerfile
image: nginx
restart: always
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./certbot/conf:/etc/letsencrypt:ro
@ -51,7 +50,7 @@ services:
- ./certbot/conf:/etc/letsencrypt:rw
- ./certbot/www/:/var/www/certbot/:rw
command: certonly --webroot --webroot-path /var/www/certbot --force-renewal --email victorvobis@protonmail.com -d remoteserver.vps.webdock.cloud --agree-tos
command: certonly --webroot --webroot-path /var/www/certbot --force-renewal --email victorvobis@protonmail.com -d 127.0.0.1 --agree-tos
website:
container_name: "site"

View File

@ -1,4 +1,4 @@
FROM alpine:edge
FROM alpine
ENV USERNAME="shelluser" \
PASSWORD="" \
SUDO_OK="false" \
@ -6,7 +6,7 @@ ENV USERNAME="shelluser" \
TZ="Etc/UTC"
COPY ./entrypoint.sh /
COPY --chmod=011 minishell_src/bin/minishell /bin/minishell
COPY --chmod=011 ./minishell_src/bin/minishell /bin/minishell
RUN apk update && \
apk add --no-cache tini ttyd tzdata vim nano && \