-
Notifications
You must be signed in to change notification settings - Fork 10
/
docker-compose.yml
62 lines (57 loc) · 1.25 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
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
networks:
- nginx-network
- memcached-network
# Nginx server
nginx:
image: nginx:1.24.0-alpine
ports:
- 8010: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:
nginx-network:
driver: bridge
memcached-network:
driver: bridge