Commit 86868400 authored by carlosribas's avatar carlosribas
Browse files

K8 version of the docker-compose file

parent ff830225
version: '3'
services:
# RNAcentral website
rnacentral:
image: rnacentral/rnacentral-webcode
expose:
- 8000
environment:
- DB_HOST=${DB_HOST}
- DB_NAME=${DB_NAME}
- DB_USER=${DB_USER}
- DB_PASSWORD=${DB_PASSWORD}
- DB_PORT=${DB_PORT}
- SECRET_KEY=${SECRET_KEY}
depends_on:
- redis
networks:
- redis-network
- nginx-network
- memcached-network
# Redis server
redis:
image: redis:6.0.8-alpine
ports:
- 8051:8051
command: redis-server --port 8051
restart: always
networks:
- redis-network
# 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
# Memcached server
memcached:
image: memcached:1.6.7-alpine
ports:
- 8052:8052
command: memcached -m 512m -p 8052
depends_on:
- rnacentral
networks:
- memcached-network
networks:
redis-network:
driver: bridge
nginx-network:
driver: bridge
memcached-network:
driver: bridge
\ 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