-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
executable file
·114 lines (103 loc) · 2.62 KB
/
docker-compose.yaml
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
version: "3.8"
services:
metax-web:
image: fairdata-docker.artifactory.ci.csc.fi/fairdata-metax-web
hostname: metax-web
ports:
- 8008:8008
- 8000:8000
environment:
DEBUG: 'true'
METAX_DATABASE: metax_db_test
METAX_DATABASE_PASSWORD: YMDLekQMqrVKcs3
METAX_DATABASE_USER: metax_test
METAX_DATABASE_HOST: metax-db
ELASTIC_SEARCH_HOSTS: metax-elasticsearch
RABBIT_MQ_HOSTS: metax-rabbitmq
REDIS_HOST: metax-redis
volumes:
- ./src:/code
configs:
- source: metax-web-config
target: /code/metax_api/settings/.env
stdin_open: True
tty: True
metax-redis:
image: redis
hostname: metax-redis
volumes:
- metax-redis:/data
metax-db:
image: postgres:12
hostname: metax-db
environment:
POSTGRES_USER: metax_test
POSTGRES_PASSWORD: YMDLekQMqrVKcs3
POSTGRES_DB: metax_db_test
volumes:
- metax-postgres:/var/lib/postgresql/data
metax-elasticsearch:
image: elasticsearch:7.9.2
hostname: metax-elasticsearch
environment:
discovery.type: single-node
volumes:
- metax-es:/usr/share/elasticsearch/data
metax-rabbitmq:
image: rabbitmq:3-management
hostname: metax-rabbitmq
ports:
- 8050:15672
volumes:
- metax-rabbitmq:/var/lib/rabbitmq
metax-auth:
image: fairdata-docker.artifactory.ci.csc.fi/fairdata-metax-httpd
configs:
- source: metax-httpd-config
target: /usr/local/apache2/conf/extra/httpd-metax.conf
hostname: metax-auth
metax-docs:
image: fairdata-docker.artifactory.ci.csc.fi/fairdata-metax-sphinx
hostname: metax-docs
environment:
DOMAIN: metax.fd-dev.csc.fi
REMS_ENABLED: "true"
ports:
- 8088:8000
volumes:
- ./docs/api:/sphinx
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: metax-nginx-config
target: /etc/nginx/sites-enabled/metax
ports:
- 443:443
volumes:
metax-rabbitmq:
external: True
metax-es:
external: True
metax-postgres:
external: True
metax-redis:
external: True
configs:
metax-web-config:
external: True
metax-httpd-config:
external: True
fairdata-nginx-config:
external: True
fairdata-ssl-certificate:
external: True
fairdata-ssl-certificate-key:
external: True
metax-nginx-config:
external: True