Skip to content

Commit

Permalink
Merge pull request #100 from coderPaddyS/Adding-Example-Configs
Browse files Browse the repository at this point in the history
Added example configurations
  • Loading branch information
SCastroAdriano authored Mar 11, 2022
2 parents 8d71fa3 + 11b1f5f commit 43dac44
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docker-compose-kit-finder.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: '3.1'

services:

kit-finder:
image: kit-finder
restart: always
ports:
- 7070:7070
network_mode: "host"
volumes:
- "./logs:/app/target/target/log"
22 changes: 22 additions & 0 deletions docker-compose-mariadb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3.1'

services:

db:
image: mariadb
restart: always

environment:
MYSQL_ROOT_PASSWORD: very-secret-password
MYSQL_DATABASE: backenddb
MYSQL_USER: mysql
MYSQL_PASSWORD: secret-password

ports:
- 3306:3306
volumes:
- ./init:/docker-entrypoint-initdb.d
- data:/var/lib/mysql

volumes:
data:
35 changes: 35 additions & 0 deletions kit-finder.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
server {
server_name my.example.com;

root /var/www/my.example.com;

access_log /var/log/nginx/my.example.com.access.log;
error_log /var/log/nginx/my.example.com.error.log;

location /graphql {
proxy_pass http://127.0.0.1:7070/graphql;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Port $server_port;
proxy_set_header Host $http_host;
proxy_set_header 'Access-Control-Allow-Origin' '*';
}

listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/my.example.com/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/my.example.com/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = my.example.com) {
return 301 https://$host$request_uri;
} # managed by Certbot

listen 80;
listen 8080;

server_name my.example.com;
return 404; # managed by Certbot

}

0 comments on commit 43dac44

Please sign in to comment.