add env files for api and docker-compose update

This commit is contained in:
Chris Smith
2025-02-20 16:36:56 +01:00
parent ee7f00c3b6
commit e47cebafe0
5 changed files with 69 additions and 0 deletions

View File

@@ -14,6 +14,20 @@ services:
extra_hosts: # https://stackoverflow.com/a/67158212/1106908
- "host.docker.internal:host-gateway"
api:
build: api
ports:
- "20081:80"
environment:
- PHP_ENABLE_XDEBUG=1
volumes:
# Re-use local composer cache via host-volume
- ~/.composer-docker/cache:/root/.composer/cache:delegated
# Mount source-code for development
- ./:/app
extra_hosts: # https://stackoverflow.com/a/67158212/1106908
- "host.docker.internal:host-gateway"
mysql:
image: mysql:8
environment: