Update deployment config

parent 5a10a40b
Pipeline #2820 passed with stage
in 2 minutes and 11 seconds
......@@ -13,16 +13,21 @@ networks:
services:
api:
image: registry.srct.gmu.edu/srct/schedules/api:0.1.0
image: registry.srct.gmu.edu/srct/schedules/api:v0.1.0
networks:
back:
environment:
RAILS_LOG_TO_STDOUT: "yes"
command: "rails s"
web:
image: registry.srct.gmu.edu/srct/schedules/web:0.1.0
image: registry.srct.gmu.edu/srct/schedules/web:v0.1.0
networks:
front:
back:
volumes:
- ./schedules_web:/web
ports:
- 8085:80
configs:
- source: nginx_conf
target: /etc/nginx/nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
upstream backend {
server api:3000;
}
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
location / {
root /web;
index index.html;
}
location /api {
proxy_pass http://backend/;
}
}
}
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