-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
97 lines (88 loc) · 2.82 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: "3"
services:
cms:
image: taccwma/frontera-cms:initial
volumes:
- ./conf/cms/secrets.py:/code/taccsite_cms/secrets.py
- ./conf/uwsgi/uwsgi.ini:/code/uwsgi.ini
- /var/www/frontera/cms/static:/code/static
- /var/www/frontera/cms/media:/code/media
expose:
- "8000"
command: ["uwsgi", "--ini", "uwsgi.ini"]
container_name: frontera_cms
nginx:
image: nginx
volumes:
- ./conf/nginx/nginx.conf:/etc/nginx/nginx.conf
#- ./conf/nginx/gzip.conf:/etc/nginx/conf/gzip.conf
- /etc/ssl/certs:/etc/ssl/certs
- /var/www/frontera/cms/static:/var/www/frontera/cms/static
- /var/www/frontera/cms/media:/var/www/frontera/cms/media
- /var/www/frontera/portal/media:/var/www/frontera/portal/media
- /var/www/frontera/portal/static:/var/www/frontera/portal/static
ports:
- 80:80
- 443:443
container_name: frontera_nginx
memcached:
image: memcached:latest
command: ["-m", "512m"]
container_name: frontera_memcached
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.3.2
ulimits:
memlock: -1
environment:
- ES_HEAP_SIZE:1g
- discovery.type=single-node
volumes:
- ./conf/es/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
- frontera_es_data:/usr/share/elasticsearch/data
expose:
- "9200"
container_name: frontera_elasticsearch
redis:
image: redis:5.0
volumes:
- frontera_redis_data:/data
expose:
- "6379"
container_name: frontera_redis
rabbitmq:
image: rabbitmq:3.7.17-management
volumes:
- frontera_rabbitmq_data:/var/lib/rabbitmq/mnesia/rabbit@frontera_rabbitmq
env_file: ./conf/rabbitmq/rabbitmq.env
expose:
- "5672"
- "5673"
- "15673"
- "15672"
container_name: frontera_rabbitmq
websockets:
image: taccwma/frontera-portal:fded485
expose:
- "9000"
container_name: frontera_websockets
hostname: frontera_websockets
command: "uwsgi --chdir /srv/www/portal/server --gevent 1000 --workers=2 --http-websockets --http-socket=:9000 --module portal.wsgi_websocket:application"
volumes:
- ./conf/portal/settings_secret.py:/srv/www/portal/server/portal/settings/settings_secret.py
core:
image: taccwma/frontera-portal:fded485
volumes:
- ./conf/portal/settings_secret.py:/srv/www/portal/server/portal/settings/settings_secret.py
- /var/www/frontera/portal/media:/srv/www/portal/server/media
- /var/www/frontera/portal/static:/srv/www/portal/server/static
expose:
- "6000"
- "5555"
stdin_open: true
tty: true
command: ['python3', './manage.py', 'runserver', '0.0.0.0:6000']
container_name: frontera_django
volumes:
frontera_redis_data:
frontera_es_data:
frontera_rabbitmq_data: