-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.dev.yml
143 lines (137 loc) · 3.43 KB
/
docker-compose.dev.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
141
142
143
version: '3.4'
volumes:
solr-data:
le-data:
# index_test_solr-data:
# external: true
networks:
default:
driver: bridge
# this is only required in openvswitch networks.
driver_opts:
com.docker.network.driver.mtu: 1400
solr:
internal: true
solrbridge:
driver: host
services:
nginx-proxy:
restart: always
logging:
driver: "json-file"
options:
max-size: 50m
image: "nginxproxy/nginx-proxy:latest"
networks:
default:
aliases:
- $HOST
ports:
- "80:80"
- "443:443"
volumes:
- "./nginx/conf.d/proxy.conf:/etc/nginx/conf.d/proxy.conf"
- "./nginx/vhost.d:/etc/nginx/vhost.d"
- "./nginx/ssl/certs:/etc/nginx/certs"
- "./nginx/html:/usr/share/nginx/html"
- "./nginx/htpasswd:/etc/nginx/htpasswd"
- "/var/run/docker.sock:/tmp/docker.sock:ro"
labels:
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy: "true"
letsencrypt-nginx-proxy-companion:
restart: always
image: "nginxproxy/acme-companion"
environment:
- NGINX_PROXY_CONTAINER=nginx-proxy
volumes:
- "./nginx/conf.d/proxy.conf:/etc/nginx/conf.d/proxy.conf"
- "./nginx/vhost.d:/etc/nginx/vhost.d"
- "./nginx/ssl/certs:/etc/nginx/certs"
- "./nginx/html:/usr/share/nginx/html"
- "./nginx/htpasswd:/etc/nginx/htpasswd"
- "/var/run/docker.sock:/var/run/docker.sock:ro"
- "le-data:/etc/acme.sh"
depends_on:
- nginx-proxy
logging:
driver: "json-file"
options:
max-size: 50m
api:
restart: always
build:
context: ./api/api
dockerfile: Dockerfile
logging:
driver: "json-file"
options:
max-size: 50m
networks:
default:
solr:
volumes:
# that's a lot of api
- "./api/api/api:/usr/src/app/api"
environment:
- SOLR_URL=http://solr:8983/solr/ckan
- VIRTUAL_HOST=api.${HOST}
- VIRTUAL_PROTO=http
- LETSENCRYPT_HOST=api.${HOST}
- LETSENCRYPT_EMAIL="dev@derilinx.com"
web:
restart: always
build:
context: ./frontend/frontend
dockerfile: Dockerfile
logging:
driver: "json-file"
options:
max-size: 50m
networks:
default:
environment:
- REACT_APP_DATA_SERVICE_URL=http://api.${HOST}
- VIRTUAL_HOST=${HOST}
- VIRTUAL_PROTO=http
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=${HOST}
- LETSENCRYPT_EMAIL="dev@derilinx.com"
volumes:
- "./frontend/frontend/public:/app/public"
- "./frontend/frontend/src:/app/src"
indexer:
#removed the start always, as this is running again and again
#restart: always
build:
context: ./indexer/indexer
dockerfile: Dockerfile
logging:
driver: "json-file"
options:
max-size: 50m
networks:
solr:
volumes:
- "./indexer/indexer:/usr/src/app"
- "./source-data:/opt/data"
environment:
- SOLR_URL=http://solr:8983/solr/ckan
# needs to match the volume mount
- DATA_DIR=/opt/data
solr:
restart: always
image: "solr:8"
ports:
- "8983:8983"
logging:
driver: "json-file"
options:
max-size: 50m
networks:
solr:
environment:
- SOLR_JAVA_MEM=-Xms1g -Xmx1g
- SOLR_OPTS=-Dlog4j2.formatMsgNoLookups=true
volumes:
- "./api/solr:/var/solr/data/ckan/"
- solr-data:/var/solr/data/ckan/data:rw