init commit

This commit is contained in:
Richard Toth
2026-02-28 12:58:47 +01:00
commit 6e3428c1f3
7 changed files with 96 additions and 0 deletions

3
.env.dist Normal file
View File

@@ -0,0 +1,3 @@
HOST=
LETSENCRYPT_EMAIL=
HOST_API=

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.env

48
docker-compose.yml Normal file
View File

@@ -0,0 +1,48 @@
services:
peppermint:
container_name: peppermint
image: pepperlabs/peppermint:latest
ports:
- 3000:3000
- 5003:5003
restart: always
depends_on:
- peppermint_postgres
networks:
- web
environment:
DB_USERNAME: "peppermint"
DB_PASSWORD: "T297rT123we6"
DB_HOST: "postgres"
SECRET: 'T297rT123we6'
peppermint-nginx:
build: ./nginx
container_name: peppermint-nginx
environment:
- VIRTUAL_HOST=${HOST}
- LETSENCRYPT_HOST=${HOST}
- LETSENCRYPT_EMAIL=${EMAIL}
networks:
- web
depends_on:
- peppermint
restart: ${RESTART}
peppermint-api-nginx:
build: ./nginx-api
container_name: peppermint-api-nginx
environment:
- VIRTUAL_HOST=${HOST_API}
- LETSENCRYPT_HOST=${HOST_API}
- LETSENCRYPT_EMAIL=${EMAIL}
networks:
- web
depends_on:
- peppermint
restart: ${RESTART}
networks:
web:
external: true

5
nginx-api/Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM nginx:1.29-alpine
LABEL author="TR Web <info@trweb.hu>"
COPY peppermintapi.conf /etc/nginx/conf.d/default.conf

View File

@@ -0,0 +1,17 @@
server {
listen 80;
listen [::]:80;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
location / {
proxy_pass http://peppermint:5003;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
proxy_read_timeout 5m;
}
client_max_body_size 10M;
}

5
nginx/Dockerfile Normal file
View File

@@ -0,0 +1,5 @@
FROM nginx:1.29-alpine
LABEL author="TR Web <info@trweb.hu>"
COPY peppermint.conf /etc/nginx/conf.d/default.conf

17
nginx/peppermint.conf Normal file
View File

@@ -0,0 +1,17 @@
server {
listen 80;
listen [::]:80;
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
location / {
proxy_pass http://peppermint:3000;
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto https;
proxy_redirect off;
proxy_read_timeout 5m;
}
client_max_body_size 10M;
}