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 - FSETID
- SETUID - SETUID
# Prevents gaining new privileges
devices: devices:
- /dev/kvm - /dev/kvm
# Prevents gaining new privileges
security_opt: security_opt:
- no-new-privileges - no-new-privileges
@ -25,11 +26,9 @@ services:
nginx-site: nginx-site:
container_name: "nginx-site" container_name: "nginx-site"
restart: always image: nginx
build:
context: ./nginx
dockerfile: Dockerfile
restart: always
volumes: volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf - ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./certbot/conf:/etc/letsencrypt:ro - ./certbot/conf:/etc/letsencrypt:ro
@ -51,7 +50,7 @@ services:
- ./certbot/conf:/etc/letsencrypt:rw - ./certbot/conf:/etc/letsencrypt:rw
- ./certbot/www/:/var/www/certbot/: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: website:
container_name: "site" container_name: "site"

View File

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