-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathcompose.ci.yml
More file actions
69 lines (62 loc) · 1.56 KB
/
Copy pathcompose.ci.yml
File metadata and controls
69 lines (62 loc) · 1.56 KB
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
x-base-php-env : &php-base-env
APP_ENV: dev
XDEBUG_MODE: off
MAILER_DSN: ${MAILER_DSN:-smtp://mailer:1025}
x-base-php: &php-base
build:
target: gally_php_ci
volumes: !override
- ./api:/app:rw,cached,z
- ./docker/php/conf.d/app.dev.ini:/usr/local/etc/php/conf.d/app.dev.ini:ro,z
environment: *php-base-env
services:
certbot:
environment:
- SELF_SIGNED=true
varnish:
depends_on: !override
- router
environment:
- CRON_UPSTREAM=
php:
<<: *php-base
healthcheck:
test: ["CMD", "test", "-f", "/tmp/entrypoint-ready"]
interval: 5s
timeout: 5s
retries: 40
start_period: 60s
environment:
<<: *php-base-env
TRUSTED_HOSTS: ${TRUSTED_HOSTS:-^${SERVER_NAME:-|gally.localhost}|localhost|${E2E_SERVER_NAME:-gally.e2e}|php$$}
cron:
<<: *php-base
profiles:
- disabled
environment:
<<: *php-base-env
CRONTAB: ~
pwa:
build:
target: gally_pwa_ci
volumes:
- ./front/example-app/coverage:/usr/src/front/example-app/coverage:rw,cached,z
- ./front/pwa/coverage:/usr/src/front/pwa/coverage:rw,cached,z
environment:
- NEXT_PUBLIC_ENTRYPOINT=
- NEXT_PUBLIC_API_URL=
- REACT_APP_API_URL=
example:
build:
context: ./docker/front
target: gally_example_ci
additional_contexts:
front_src: ./front
e2e:
extends:
file: ./compose.e2e.yml
service: e2e
volumes:
- ./front/e2e/playwright-report:/usr/src/app/playwright-report:rw,cached,z
environment:
- CI=true