-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
77 lines (71 loc) · 1.52 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3'
services:
# RNAcentral website
rnacentral:
build:
context: .
args:
- LOCAL_DEVELOPMENT=${LOCAL_DEVELOPMENT}
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}
- DJANGO_DEBUG=${DJANGO_DEBUG}
- S3_HOST=${S3_HOST}
- S3_KEY=${S3_KEY}
- S3_SECRET=${S3_SECRET}
- EBI_SEARCH_ENDPOINT=${EBI_SEARCH_ENDPOINT}
expose:
- 8000
volumes:
- static_volume:/srv/rnacentral/static
- ./openssl/openssl.cnf:/etc/ssl/openssl.cnf
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.24.0-alpine
ports:
- 8000:80
volumes:
- ./nginx/conf.d:/etc/nginx/conf.d
- static_volume:/srv/rnacentral/static
depends_on:
- rnacentral
networks:
- nginx-network
# Memcached server
memcached:
image: memcached:1.6.7-alpine
ports:
- 11211:11211
command: memcached -m 512m
depends_on:
- rnacentral
networks:
- memcached-network
volumes:
static_volume:
networks:
redis-network:
driver: bridge
nginx-network:
driver: bridge
memcached-network:
driver: bridge