init commit
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.env
|
||||
48
docker-compose.yml
Normal file
48
docker-compose.yml
Normal 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
5
nginx-api/Dockerfile
Normal 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
|
||||
17
nginx-api/peppermintapi.conf
Normal file
17
nginx-api/peppermintapi.conf
Normal 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
5
nginx/Dockerfile
Normal 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
17
nginx/peppermint.conf
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user