forked from italia/developers.italia.it
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1.2 KB
/
docker-compose.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
services:
elasticsearch:
image: docker.io/italia/publiccode-tools-elasticsearch:ceb40894eaa142c8aec55c8dbcc9df038ec491e1
environment:
- cluster.routing.allocation.disk.threshold_enabled=false
ports:
- 9200:9200
networks:
- overlay
devita_website:
image: italia/developers.italia.it
container_name: devita_website
build:
context: ./
dockerfile: Dockerfile
user: "${RUNAS?Try $ echo RUNAS=$(id -u):$(id -g) >> .env}"
env_file:
- .env
ports:
# Jekyll serve
- 4000:4000
# Webpack live reload
- 35729:35729
# webpack-dev-server
- 8080:8080
# By default, we mount all the working dir to
# facilitate local development. Then, we exclude
# folders which content changes through a build:
# assets, _data, node_modules, vendor
volumes:
- .:/usr/src/developers.italia.it
- /usr/src/developers.italia.it/_data/crawler
- /usr/src/developers.italia.it/node_modules
- /usr/src/developers.italia.it/vendor
depends_on:
- elasticsearch
command: ["wait-for-it", "elasticsearch:9200", "--timeout=60", "--", "make", "local"]
networks:
- overlay
networks:
overlay: