-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
66 lines (62 loc) · 1.77 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: "3.9"
services:
en:
image: $WERF_JEKYLL_BASE_DOCKER_IMAGE_NAME
working_dir: "/app"
environment:
JEKYLL_ENV: "dev"
command: bash -c "
find /app/ -mindepth 1 -maxdepth 1 -not -name .git -exec chmod -R o+w {} \\; &&
chmod -R o+w /tmp/_site/ &&
jekyll serve -t --disable-disk-cache --config _config.yml,_config_dev.yml,_config_en.yml --destination /tmp/_site -P 80 --profile --watch --trace"
volumes:
- "./:/app/:cached"
- "./_site_en_includes:/tmp/_site/includes"
networks:
default:
aliases:
- website-en
ru:
image: $WERF_JEKYLL_BASE_DOCKER_IMAGE_NAME
working_dir: "/app"
environment:
JEKYLL_ENV: "dev"
command: bash -c "
find /app/ -mindepth 1 -maxdepth 1 -not -name .git -exec chmod -R o+w {} \\; &&
chmod -R o+w /tmp/_site/ &&
jekyll serve -t --disable-disk-cache --config _config.yml,_config_dev.yml,_config_ru.yml --destination /tmp/_site -P 80 --profile --watch --trace"
volumes:
- "./:/app/:cached"
- "./_site_ru_includes:/tmp/_site/includes"
networks:
default:
aliases:
- website-ru
front:
image: nginx:latest
volumes:
- ".werf/nginx-dev.conf:/etc/nginx/nginx.conf:ro"
ports:
- "80:80"
depends_on:
- ru
- en
backend:
image: $WERF_BACKEND_DOCKER_IMAGE_NAME
environment:
ACTIVE_RELEASE: "2"
LOG_LEVEL: info
URL_VALIDATION: "false"
command: "/app/server"
volumes:
- ".helm/trdl_channels-dev.yaml:/app/trdl/trdl_channels.yaml:ro"
- "./_site_en_includes:/app/root/en/includes"
- "./_site_ru_includes:/app/root/ru/includes"
depends_on:
- ru
- en
- front
networks:
default:
name: werfio-dev
external: true