forked from werf/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
35 lines (33 loc) · 928 Bytes
/
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
version: "3.9"
services:
en:
image: $WERF_JEKYLL_BASE_DOCKER_IMAGE_NAME
working_dir: "/srv/jekyll-data"
environment:
JEKYLL_ENV: "dev"
command: bash -c "
chmod -R o+w /srv/jekyll-data/ &&
jekyll serve -t --disable-disk-cache --config _config.yml,_config_dev.yml,_config_en.yml --destination /tmp/_site -P 80"
volumes:
- "./:/srv/jekyll-data/"
ru:
image: $WERF_JEKYLL_BASE_DOCKER_IMAGE_NAME
working_dir: "/srv/jekyll-data"
environment:
JEKYLL_ENV: "dev"
command: bash -c "
chmod -R o+w /srv/jekyll-data/ &&
jekyll serve -t --config _config.yml,_config_dev.yml,_config_ru.yml --destination /tmp/_site -P 80"
volumes:
- "./:/srv/jekyll-data/"
depends_on:
- en
front:
image: nginx:latest
volumes:
- ".werf/nginx-dev.conf:/etc/nginx/nginx.conf:ro"
ports:
- "80:80"
depends_on:
- ru
- en