Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
eb721652
Commit
eb721652
authored
Sep 01, 2018
by
GitLab-CE-Pages Service User
Browse files
Update deployment config
parent
5a10a40b
Pipeline
#2820
passed with stage
in 2 minutes and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
docker-cloud.yml
View file @
eb721652
...
...
@@ -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:
v
0.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:
v
0.1.0
networks
:
front
:
back
:
volumes
:
-
./schedules_web:/web
ports
:
-
8085:80
configs
:
-
source
:
nginx_conf
target
:
/etc/nginx/nginx.conf
schedules_web/nginx.conf
0 → 100644
View file @
eb721652
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/
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment