Skip to content

Commit 0338679

Browse files
committed
update compose files
1 parent 85d5e77 commit 0338679

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed

compose.e2e.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# E2E environment override
2+
services:
3+
e2e:
4+
build:
5+
context: .
6+
dockerfile: ./docker/front/Dockerfile.e2e
7+
environment:
8+
- SERVER_BASE_URL=https://${E2E_SERVER_NAME:-gally.e2e}
9+
- API_SERVER_BASE_URL=https://${E2E_SERVER_NAME:-gally.e2e}/${API_ROUTE_PREFIX:-api}
10+
depends_on:
11+
- proxy
12+
extra_hosts:
13+
- ${E2E_SERVER_NAME:-gally.e2e}:host-gateway

compose.override.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Development environment override
2+
include:
3+
- compose.e2e.yml
24
services:
35

46
certbot:
@@ -21,6 +23,7 @@ services:
2123
- ./docker/php/conf.d/app.dev.ini:/usr/local/etc/php/conf.d/app.dev.ini:ro,z
2224
environment:
2325
- APP_ENV=${APP_ENV:-dev}
26+
- TRUSTED_HOSTS=${TRUSTED_HOSTS:-^${SERVER_NAME:-|gally.localhost}|localhost|${E2E_SERVER_NAME:-gally.e2e}|php$$}
2427
# See https://xdebug.org/docs/all_settings#mode
2528
- XDEBUG_MODE=${XDEBUG_MODE:-off}
2629
- PHP_IDE_CONFIG=serverName=gally
@@ -41,6 +44,9 @@ services:
4144
environment:
4245
# On Linux, you may want to comment the following line for improved performance
4346
- WATCHPACK_POLLING="true"
47+
- NEXT_PUBLIC_ENTRYPOINT
48+
- NEXT_PUBLIC_API_URL
49+
- REACT_APP_API_URL
4450

4551
example:
4652
user: ${UUID?You must set UUID env var}:${GUID?You must set GUID env var}
@@ -56,17 +62,3 @@ services:
5662
environment:
5763
- PUBLIC_URL=https://${SERVER_NAME:-gally.localhost}/example
5864
- REACT_APP_API_URL=https://${SERVER_NAME:-gally.localhost}/${API_ROUTE_PREFIX:-api}
59-
60-
e2e:
61-
build:
62-
context: .
63-
dockerfile: ./docker/front/Dockerfile.e2e
64-
environment:
65-
- SERVER_BASE_URL=https://${SERVER_NAME:-gally.localhost}
66-
- API_SERVER_BASE_URL=https://${API_SERVER_NAME:-api.gally.localhost}
67-
depends_on:
68-
- proxy
69-
extra_hosts:
70-
- ${SERVER_NAME:-gally.localhost}:host-gateway
71-
- ${API_SERVER_NAME:-api.gally.localhost}:host-gateway
72-

0 commit comments

Comments
 (0)