-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
executable file
·140 lines (127 loc) · 3.16 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: '3'
services:
las:
container_name: las
build: ./las/
#command: tail -F anything # keep it running
entrypoint: ['sh', '/data/web/las_setup.sh']
volumes:
- ./las:/data/web
#- assets:/assets
- las_static:/collected_static
- lasstatus:/las_status
working_dir: /data/web
restart: always
env_file:
- .env
ports:
- "8000:8000"
depends_on:
- lasmongodb1
#- graphdb
lasredis:
container_name: lasredis
image: redis:alpine
expose:
- "6379"
restart: always
lasmongodb3:
image: mongo:4
restart: always
container_name: lasmongodb3
env_file:
- .env
volumes:
- lasmongodata3:/data/db
expose:
- "27017"
entrypoint: [ "/usr/bin/mongod", "--replSet", "rslas", "--bind_ip_all" ]
lasmongodb2:
image: mongo:4
restart: always
container_name: lasmongodb2
env_file:
- .env
volumes:
- lasmongodata2:/data/db
expose:
- "27017"
entrypoint: [ "/usr/bin/mongod", "--replSet", "rslas", "--bind_ip_all"]
lasmongodb1:
image: mongo:4
restart: always
container_name: lasmongodb1
env_file:
- .env
volumes:
- lasmongodata1:/data/db
expose:
- "27017"
ports:
- "27018:27017"
entrypoint: [ "/usr/bin/mongod", "--replSet", "rslas", "--bind_ip_all"]
lasmongosetup:
image: mongo:4
container_name: lasmongosetup
depends_on:
- lasmongodb1
volumes:
- lasstatus:/data/
- ./mongo-setup:/config
entrypoint: [ "bash", "/config/mongo-setup.sh"]
# nginx:
# build: ./nginx-pagespeed/
# restart: always
# volumes:
# - ./nginx/nginx.conf:/etc/nginx/app/nginx.conf
# - ./nginx/conf:/etc/nginx/app/conf_app/
# - las_static:/collected_static
# #- assets:/assets
# #- ./las/_config/static_to_move_away:/static
# #- ./las/_config/static_to_move_away/img:/img
# #- ./las/static:/las_static
# - ./nginx/certificate:/ssl
# #- tinymce:/tinymce
# #- django_tinymce:/django_tinymce
# ports:
# - "80:80"
# - "443:443"
# environment:
# - MAKE_J=4
# - NGINX_VERSION=1.15.5
# - PAGESPEED_VERSION=1.12.34.2
# - LIBPNG_VERSION=1.6.29
# - NGINX_INCLUDE_PATH=/etc/nginx/app/conf_app/*.conf
# - NGINX_DEFAULT_SERVER=off
# - NGINX_FASTCGI_GEOIP=off
# - NGINX_PAGESPEED=on
# - NGINX_PAGESPEED_IMG=on
# - NGINX_PAGESPEED_JS=on
# - NGINX_PAGESPEED_CSS=on
# - NGINX_PAGESPEED_STORAGE=file
flower:
container_name: flower
image: mher/flower
command: ["flower", "--broker=redis://lasredis:6379/0", "--port=8888"]
ports:
- 8888:8888
celerylas:
build: ./las/
command: celery worker -A LAS -l info --concurrency=3
working_dir: /code
volumes:
- ./las:/code
depends_on:
- lasmongodb1
- lasmongodb2
- lasmongodb3
- lasmongosetup
- lasredis
volumes:
las_static:
#assets:
lasmongodata1:
lasmongodata2:
lasmongodata3:
lasstatus:
##lasgraphdb: