-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-with-v3.yaml
146 lines (133 loc) · 3.43 KB
/
docker-compose-with-v3.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
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
141
142
143
144
145
146
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_2_test
METAX_DATABASE_PASSWORD: YMDLekQMqrVKcs3
METAX_DATABASE_USER: metax_test
METAX_DATABASE_HOST: metax-2-db
ELASTIC_SEARCH_HOSTS: metax-elasticsearch
RABBIT_MQ_HOSTS: metax-rabbitmq
REDIS_HOST: metax-redis
METAX_V3_HOST: metax-v3:8002
METAX_V3_TOKEN: secret
METAX_V3_INTEGRATION_ENABLED: 'true'
volumes:
- ./src:/code
configs:
- source: metax-web-config
target: /code/metax_api/settings/.env
stdin_open: True
tty: True
metax-v3:
image: fairdata-docker.artifactory.ci.csc.fi/fairdata-metax-service
hostname: metax-v3
ports:
- 8002:8002
environment:
DEBUG: 'true'
POSTGRES_DATABASE_NAME: metax_db_3_test
POSTGRES_USER: metax_test
POSTGRES_PASS: YMDLekQMqrVKcs3
POSTGRES_HOST: metax-3-db
ENABLE_MEMCACHED: 'false'
volumes:
- ./v3:/code
stdin_open: True
tty: True
metax-redis:
image: redis
hostname: metax-redis
volumes:
- metax-redis:/data
metax-2-db:
image: postgres:12
hostname: metax-2-db
environment:
POSTGRES_USER: metax_test
POSTGRES_PASSWORD: YMDLekQMqrVKcs3
POSTGRES_DB: metax_db_2_test
volumes:
- metax-2-postgres:/var/lib/postgresql/data
metax-3-db:
image: postgres:12
hostname: metax-3-db
environment:
POSTGRES_USER: metax_test
POSTGRES_PASSWORD: YMDLekQMqrVKcs3
POSTGRES_DB: metax_db_3_test
volumes:
- metax-3-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-2-postgres:
external: True
metax-3-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