From 112e57469652b1009eace834ab58ce8a1682b02a Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Sat, 24 Apr 2021 21:37:09 +0100 Subject: [PATCH] Remove docker-compose files --- .dockerignore | 1 - docker-compose.override.yml | 9 ------- docker-compose.prod.yml | 47 ------------------------------------- docker-compose.yml | 19 --------------- limit_req.conf | 3 --- 5 files changed, 79 deletions(-) delete mode 100644 docker-compose.override.yml delete mode 100644 docker-compose.prod.yml delete mode 100644 docker-compose.yml delete mode 100644 limit_req.conf diff --git a/.dockerignore b/.dockerignore index 51e97a7..2ccdef7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,4 @@ .* -docker-compose* Dockerfile LICENSE Procfile diff --git a/docker-compose.override.yml b/docker-compose.override.yml deleted file mode 100644 index d42f896..0000000 --- a/docker-compose.override.yml +++ /dev/null @@ -1,9 +0,0 @@ -version: '3' -services: - web: - build: . - environment: - APP_ENV: development - VIRTUAL_HOST: localhost - ports: - - "8080:8080" diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml deleted file mode 100644 index e9cdee0..0000000 --- a/docker-compose.prod.yml +++ /dev/null @@ -1,47 +0,0 @@ -version: '3' -services: - db: - restart: unless-stopped - web: - env_file: .env - image: hakanensari/frankfurter - logging: - options: - max-size: "50m" - max-file: "10" - restart: unless-stopped - nginx-proxy: - container_name: nginx-proxy - image: jwilder/nginx-proxy - labels: - - "com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true" - logging: - options: - max-size: "50m" - max-file: "10" - ports: - - "80:80" - - "443:443" - restart: unless-stopped - volumes: - - /etc/nginx/conf.d - - /var/run/docker.sock:/tmp/docker.sock:ro - - ./limit_req.conf:/etc/nginx/conf.d/limit_req.conf:ro - - certs:/etc/nginx/certs:ro - - html:/usr/share/nginx/html - - vhost.d:/etc/nginx/vhost.d - letsencrypt-nginx-proxy-companion: - container_name: nginx-proxy-le - image: jrcs/letsencrypt-nginx-proxy-companion - depends_on: - - nginx-proxy - restart: unless-stopped - volumes: - - /var/run/docker.sock:/var/run/docker.sock:ro - - certs:/etc/nginx/certs:rw - - html:/usr/share/nginx/html - - vhost.d:/etc/nginx/vhost.d -volumes: - certs: - html: - vhost.d: diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 6c85df1..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,19 +0,0 @@ -version: '3' -services: - db: - container_name: db - image: postgres:12 - environment: - POSTGRES_HOST_AUTH_METHOD: trust - web: - container_name: web - command: bundle exec unicorn -c config/unicorn.rb - entrypoint: bin/wait-for-it.sh db:5432 -s -- - environment: - DATABASE_URL: postgres://postgres@db/postgres - expose: - - '8080' - links: - - db -volumes: - data: diff --git a/limit_req.conf b/limit_req.conf deleted file mode 100644 index f740255..0000000 --- a/limit_req.conf +++ /dev/null @@ -1,3 +0,0 @@ -limit_req_zone $binary_remote_addr zone=api:10m rate=50r/s; -limit_req_status 429; -limit_req zone=api burst=500 nodelay;