add env files for api and docker-compose update
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user