-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose-with-nginx.yml
74 lines (72 loc) · 2.16 KB
/
docker-compose-with-nginx.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
version: '3.8'
services:
etsin-qvain-webpack:
image: fairdata-docker.artifactory.ci.csc.fi/fairdata-etsin-qvain-webpack
hostname: 'etsin-qvain-webpack'
ports:
- 8080:8080
command: npm run dev
volumes:
- ./etsin_finder/:/etsin_finder/
depends_on:
- backend
environment:
- CHOKIDAR_USEPOLLING=true
- base_url=0.0.0.0:8080
etsin-qvain-flask:
image: fairdata-docker.artifactory.ci.csc.fi/fairdata-etsin-qvain-flask
hostname: 'etsin-qvain-flask'
configs:
- source: etsin-qvain-app-config
target: /home/etsin-user/app_config
volumes:
- ./etsin_finder/:/etsin_finder/
- ./tests/:/tests/
environment:
- base_url=0.0.0.0:5000
- FLASK_ENV=development
- PYTHONPATH=/
- FLASK_DEBUG=1
etsin-qvain-elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.5.2
hostname: 'etsin-qvain-elasticsearch'
environment:
- base_url=0.0.0.0:9201
- http.host=0.0.0.0
- transport.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- "discovery.type=single-node"
volumes:
- ./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
etsin-qvain-memcached:
image: memcached:latest
hostname: 'etsin-qvain-memcached'
ports:
- "11211:11211"
command: ["memcached"]
fairdata-nginx:
image: nginx:latest
configs:
- source: fairdata-nginx-config
target: /etc/nginx/nginx.conf
- source: fairdata-ssl-certificate
target: /etc/pki/tls/certs/ssl.crt.pem
- source: fairdata-ssl-certificate-key
target: /etc/pki/tls/private/ssl.key.pem
- source: etsin-qvain-nginx-config
target: /etc/nginx/sites-enabled/etsin-qvain
ports:
- 443:443
volumes:
- ./etsin_finder/:/etsin_finder/
configs:
etsin-qvain-app-config:
external: True
etsin-qvain-nginx-config:
external: True
fairdata-nginx-config:
external: True
fairdata-ssl-certificate:
external: True
fairdata-ssl-certificate-key:
external: True