Skip to content

Commit

Permalink
update compose files
Browse files Browse the repository at this point in the history
  • Loading branch information
botisSmile committed Jan 14, 2025
1 parent 85d5e77 commit 0338679
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
13 changes: 13 additions & 0 deletions compose.e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# E2E environment override
services:
e2e:
build:
context: .
dockerfile: ./docker/front/Dockerfile.e2e
environment:
- SERVER_BASE_URL=https://${E2E_SERVER_NAME:-gally.e2e}
- API_SERVER_BASE_URL=https://${E2E_SERVER_NAME:-gally.e2e}/${API_ROUTE_PREFIX:-api}
depends_on:
- proxy
extra_hosts:
- ${E2E_SERVER_NAME:-gally.e2e}:host-gateway
20 changes: 6 additions & 14 deletions compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Development environment override
include:
- compose.e2e.yml
services:

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

example:
user: ${UUID?You must set UUID env var}:${GUID?You must set GUID env var}
Expand All @@ -56,17 +62,3 @@ services:
environment:
- PUBLIC_URL=https://${SERVER_NAME:-gally.localhost}/example
- REACT_APP_API_URL=https://${SERVER_NAME:-gally.localhost}/${API_ROUTE_PREFIX:-api}

e2e:
build:
context: .
dockerfile: ./docker/front/Dockerfile.e2e
environment:
- SERVER_BASE_URL=https://${SERVER_NAME:-gally.localhost}
- API_SERVER_BASE_URL=https://${API_SERVER_NAME:-api.gally.localhost}
depends_on:
- proxy
extra_hosts:
- ${SERVER_NAME:-gally.localhost}:host-gateway
- ${API_SERVER_NAME:-api.gally.localhost}:host-gateway

0 comments on commit 0338679

Please sign in to comment.