This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
93 lines (84 loc) · 3.33 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
version: '3.4'
services:
mysql:
image: mysql:5.7
volumes:
- ./packages/public/server/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=secret
hydra:
image: oryd/hydra:v1.10.1-sqlite
ports:
- '4444:4444'
- '4445:4445'
command: serve all --dangerous-force-http
environment:
- LOG_LEVEL=debug
- OAUTH2_EXPOSE_INTERNAL_ERRORS=1
- URLS_SELF_ISSUER=http://localhost:4444
- URLS_LOGIN=http://de.serlo.localhost:4567/auth/hydra/login
- URLS_LOGOUT=http://de.serlo.localhost:4567/auth/hydra/logout
- URLS_CONSENT=http://de.serlo.localhost:4567/auth/hydra/consent
- DSN=memory
- SECRETS_SYSTEM=youReallyNeedToChangeThis
- OIDC_SUBJECT_IDENTIFIERS_ENABLED=public,pairwise
- OIDC_SUBJECT_IDENTIFIERS_PAIRWISE_SALT=youReallyNeedToChangeThis
# editor-renderer:
# build:
# context: .
# dockerfile: packages/public/editor-renderer/Dockerfile
editor-renderer:
image: eu.gcr.io/serlo-shared/serlo-org-editor-renderer
# legacy-editor-renderer:
# build:
# context: .
# dockerfile: packages/public/legacy-editor-renderer/Dockerfile
legacy-editor-renderer:
image: eu.gcr.io/serlo-shared/serlo-org-legacy-editor-renderer
server-composer:
image: composer:2
volumes:
- ./packages/public/server/composer.json:/app/composer.json:cached
- ./packages/public/server/composer.lock:/app/composer.lock:cached
- ./packages/public/server/src/module:/app/src/module:cached
- ./packages/public/server/src/vendor:/app/src/vendor:cached
server-httpd:
build:
context: packages/public/server
dockerfile: docker/httpd/Dockerfile
target: base
ports:
- '4567:80'
volumes:
- ./packages/public/server/src/public:/usr/local/apache2/htdocs/src/public:delegated
environment:
- PHP_HOST=server-php
server-php:
build:
context: packages/public/server
dockerfile: docker/php/Dockerfile
target: base
volumes:
- ./packages/public/server/dev-tools/vendor:/usr/local/apache2/htdocs/dev-tools/vendor:delegated
- ./packages/public/server/package.json:/usr/local/apache2/htdocs/package.json:delegated
- ./packages/public/server/phpunit.xml:/usr/local/apache2/htdocs/phpunit.xml:delegated
- ./packages/public/server/src/config:/usr/local/apache2/htdocs/src/config:delegated
- ./packages/public/server/src/lang:/usr/local/apache2/htdocs/src/lang:delegated
- ./packages/public/server/src/module:/usr/local/apache2/htdocs/src/module:delegated
- ./packages/public/server/src/public:/usr/local/apache2/htdocs/src/public:delegated
- ./packages/public/server/src/test:/usr/local/apache2/htdocs/src/test:delegated
- ./packages/public/server/src/vendor:/usr/local/apache2/htdocs/src/vendor:delegated
- ./packages/public/server/src/init_autoloader.php:/usr/local/apache2/htdocs/src/init_autoloader.php:delegated
server-migrate:
build:
context: packages/migrations
volumes:
- ./packages/migrations/dist:/usr/src/app/migrations:delegated
environment:
- DATABASE=mysql://root:secret@mysql:3306/serlo?query
static-assets:
image: nginx
ports:
- '8082:80'
volumes:
- ./packages/public/static-assets/src:/usr/share/nginx/html:delegated