-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.prod.yml
executable file
·131 lines (117 loc) · 2.77 KB
/
docker-compose.prod.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
version: '3'
services:
las:
container_name: las
build: ./las/
entrypoint: ['sh', '/data/web/las_setup.sh']
volumes:
- ./las:/data/web
- las_static:/collected_static
- lasstatus:/las_status
working_dir: /data/web
restart: always
env_file:
- .env
environment:
- PRODUCTION=True
depends_on:
- lasmongodb1
#- graphdb
redis:
container_name: redis
image: redis:alpine
ports:
- "6379: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
- ./nginx/certificate:/ssl
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://redis:6379/0", "--port=8888"]
ports:
- 8888:8888
# graphdb:
# container_name: "graphdb"
# image: "lascandiolo/graphdb:8.10.1-free"
# restart: always
# ports:
# - "7200:7200"
# command:
# - -Dgraphdb.workbench.cors.enable=true
# - -Dgraphdb.home=/opt/graphdb/home
# volumes:
# - "lasgraphdb:/opt/graphdb/home"
volumes:
las_static:
lasmongodata1:
lasmongodata2:
lasmongodata3:
lasstatus:
#lasgraphdb: