Commit e52aedf8 authored by Arthur Assis's avatar Arthur Assis

impruves nginx image to run in production

parent e0f767d3
Pipeline #37263602 failed with stage
in 2 minutes and 20 seconds
FROM tutum/nginx
ADD /static/ /var/www/static/
COPY docker/nginx/sites-enabled/smi_unb /etc/nginx/sites-enabled/default
......@@ -2,32 +2,26 @@ version: '2'
services:
nginx:
restart: always
build: ./docker/nginx/
image: arthur0496/nginx-smi
ports:
- "80:80"
volumes:
- ./docker/nginx/collect/static/:/var/www/static/
volumes_from:
- web
links:
- web:web
web:
build:
context: .
dockerfile: ./docker/Dockerfile.slave
image: arthur0496/smi-slave
expose:
- "8000"
links:
- postgres:postgres
- redis:redis
env_file: ./docker/env
volumes:
- ./src/:/app/src/
postgres:
restart: always
image: postgres:latest
image: postgres:9.6
volumes_from:
- data
volumes:
......
FROM tutum/nginx
ADD /collect/static/ /var/www/static/
RUN rm /etc/nginx/sites-enabled/default
ADD sites-enabled/ /etc/nginx/sites-enabled
\ No newline at end of file
......@@ -2,7 +2,7 @@ server {
listen 80;
client_max_body_size 4G;
server_name localhost;
server_name https://smi.lappis.rocks;
charset utf-8;
location /static/ {
......@@ -21,4 +21,4 @@ server {
proxy_pass http://web:8000;
}
}
\ No newline at end of file
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment