Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
f550cf72
Commit
f550cf72
authored
Oct 05, 2020
by
carlosribas
Browse files
Add nginx service
parent
fe936c29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
docker-compose.yml
docker-compose.yml
+22
-20
No files found.
docker-compose.yml
View file @
f550cf72
version
:
'
2
'
version
:
'
3.8
'
services
:
# RNAcentral website
web
:
rnacentral
:
build
:
context
:
.
dockerfile
:
Dockerfile-development
volumes
:
-
"
rnacentral_data:/rnacentral"
environment
:
-
DB_HOST=${DB_HOST}
-
DB_NAME=${DB_NAME}
...
...
@@ -15,33 +13,37 @@ services:
-
DB_PASSWORD=${DB_PASSWORD}
-
DB_PORT=${DB_PORT}
-
SECRET_KEY=${SECRET_KEY}
stdin_open
:
true
tty
:
true
ports
:
-
"
9000:8000"
depends_on
:
-
redis
networks
:
node_net
:
ipv4_address
:
192.168.1.2
-
redis_network
-
nginx_network
# Redis server
redis
:
image
:
"
redis:alpine
"
image
:
redis:
6.0.8-
alpine
ports
:
-
"
8051:8051"
command
:
redis-server --port
8051
restart
:
always
networks
:
node_net
:
ipv4_address
:
192.168.1.3
-
redis_network
volumes
:
rnacentral_data
:
# Nginx server
nginx
:
image
:
nginx:1.19.2-alpine
ports
:
-
8000:80
volumes
:
-
./nginx/conf.d:/etc/nginx/conf.d
-
./rnacentral/portal/static/:/static
depends_on
:
-
rnacentral
networks
:
-
nginx_network
networks
:
node_net
:
ipam
:
driver
:
default
config
:
-
subnet
:
192.168.1.0/24
\ No newline at end of file
redis_network
:
driver
:
bridge
nginx_network
:
driver
:
bridge
\ No newline at end of file
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