-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose.yml
79 lines (78 loc) · 2.32 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
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
services:
composer:
build:
context: .
dockerfile: Dockerfile.composer
args:
composer_dev_arg: ${COMPOSER_DEV_ARG}
image: elifesciences/journal_composer:${IMAGE_TAG}
command: /bin/bash
npm:
build:
context: .
dockerfile: Dockerfile.npm
args:
node_version: ${NODE_VERSION}
image: elifesciences/journal_npm:${IMAGE_TAG}
redis:
image: redis:6.2-alpine
assets_builder:
build:
context: .
dockerfile: Dockerfile.assets_builder
args:
image_tag: ${IMAGE_TAG}
node_version: ${NODE_VERSION}
image: elifesciences/journal_assets_builder:${IMAGE_TAG}
depends_on:
- composer
- npm
app:
build:
context: .
args:
image_tag: ${IMAGE_TAG}
php_version: ${PHP_VERSION}
environment:
- SYMFONY__API_URL=${API_URL}
- SYMFONY__API_URL_SEARCH_PAGE=${API_URL_SEARCH_PAGE:-${API_URL}}
- SYMFONY__API_URL_PUBLIC=${API_URL_PUBLIC}
- SYMFONY__API_KEY=${API_KEY}
image: elifesciences/journal:${IMAGE_TAG}
volumes:
- ./.docker/parameters.yml:/srv/journal/app/config/parameters.yml
depends_on:
- assets_builder
- composer
- redis
web:
build:
context: .
dockerfile: Dockerfile.web
args:
image_tag: ${IMAGE_TAG}
image: elifesciences/journal_web:${IMAGE_TAG}
ports:
- '${JOURNAL_PORT}:80'
depends_on:
- app
api_dummy:
image: ghcr.io/elifesciences/api-dummy:${DEPENDENCIES_API_DUMMY}
ports:
- '${JOURNAL_API_DUMMY_PORT}:8080'
stop_grace_period: 1s
critical_css:
build:
context: .
dockerfile: Dockerfile.critical_css
args:
image_tag: ${IMAGE_TAG}
node_version: ${NODE_VERSION}
environment:
- CRITICAL_CSS_BASE_URL=http://web:8080
image: elifesciences/journal_critical_css:${IMAGE_TAG}
depends_on:
- npm
- web
- api_dummy