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
allgo
allgo
Commits
444b9049
Commit
444b9049
authored
Nov 17, 2016
by
BAIRE Anthony
Browse files
unicorn + nginx integration
parent
47190bb6
Changes
3
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
444b9049
...
...
@@ -238,13 +238,31 @@ Hosts a mysql server listening on port 3306 with two databases: `allgo` and
## rails
Hosts
three
daemons for running allgo:
Hosts
four
daemons for running allgo:
-
the
rails server
-
the
unicorn server (runnning the rails application)
-
the sidekiq queue manager
-
the redis db server
-
a nginx frontend for buffering the HTTP requests/responses
This container is managed with supervisor, the
`supervisorctl`
command allows
starting/stopping the daemons individually.
### Running the rails server manually
-
run the
`dev-rails`
container and open a shell:
<pre>
fig up -d
docker exec -t -i dev-rails bash
</pre>
-
then, inside the container, run:
<pre>
supervisorctl stop rails
rails server
</pre>
(TODO add unicorn+nginx for production)
## ssh
...
...
docker-compose.yml
View file @
444b9049
...
...
@@ -63,7 +63,7 @@ dev-rails:
user
:
"
$DOCKER_USER"
ports
:
-
"
127.0.0.1:3000:
300
0"
-
"
127.0.0.1:3000:
808
0"
volumes
:
-
"
/data/dev/rails:/vol"
...
...
nginx/dk/container_init
View file @
444b9049
...
...
@@ -47,7 +47,7 @@ EOF
# write nginx config
write_config
<<
EOF
ALLGO(
$CTR
,
300
0,
$FQDN
, 443)
ALLGO(
$CTR
,
808
0,
$FQDN
, 443)
{
# here you can add nginx directives for the server configuration
#
...
...
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