This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM wshihadeh/rails-base-image-ruby:2.6.5-mysql | |
LABEL maintainer="Al-waleed Shihadeh <[email protected]>" | |
COPY ./docker-entrypoint.sh / | |
ENTRYPOINT ["/docker-entrypoint.sh"] | |
USER rails | |
WORKDIR /application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxy_cache_path /var/cache/nginx/blog levels=1:2 | |
keys_zone=blog:10m max_size=1g inactive=60m; | |
server { | |
listen 80 default_server; | |
server_name blog.*; | |
proxy_cache_key $scheme$request_method$host$request_uri; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
networks: | |
traefik: | |
external: true | |
volumes: | |
db_data: | |
services: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxy: | |
image: traefik:v2.1 | |
command: | |
- '--providers.docker=true' | |
- '--entryPoints.web.address=:80' | |
- '--providers.providersThrottleDuration=2s' | |
- '--providers.docker.watch=true' | |
- '--providers.docker.swarmMode=true' | |
- '--providers.docker.swarmModeRefreshSeconds=15s' | |
- '--providers.docker.exposedbydefault=false' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.7' | |
networks: | |
traefik: | |
external: true | |
volumes: | |
db_data: | |
po_data: | |
gr_data: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM prom/prometheus:v2.16.0 | |
COPY prometheus.yml /etc/prometheus/prometheus.yml | |
COPY ./docker-entrypoint.sh /etc/prometheus/ | |
ENTRYPOINT [ "/etc/prometheus/docker-entrypoint.sh" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codecov | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
name: Run rspec to generate code coverage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def append_info_to_payload(payload) | |
super | |
payload[:host] = request.host | |
payload[:remote_ip] = request.remote_ip | |
payload[:ip] = request.ip | |
payload[:x_forwarded_for] = request.env['HTTP_X_FORWARDED_FOR'] | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Replace config.log_level = :debug with | |
config.log_level = ENV.fetch('LOG_LEVEL', 'debug').to_sym |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'lograge' |