diff --git a/build/docker-compose/docker-compose.code-server.yml b/build/docker-compose/docker-compose.code-server.yml index 3ebfb6676..f4051d9df 100644 --- a/build/docker-compose/docker-compose.code-server.yml +++ b/build/docker-compose/docker-compose.code-server.yml @@ -5,6 +5,8 @@ networks: default: internal: true + gateway: + external: true secrets: CODE_SERVER_PASSWORD: file: "../../secrets/live/CODE_SERVER_PASSWORD" @@ -41,11 +43,7 @@ services: - CODE_SERVER_PASSWORD volumes: # Mount and serve contents of Drupal site. - - type: volume - source: drupal-root - target: /var/www/drupal - volume: - nocopy: true + - ../../codebase:/var/www/drupal:delegated # Mount and serve Drupal files. - type: volume source: drupal-sites-data @@ -76,7 +74,7 @@ services: - traefik.enable=false volumes: # Allow code-server to serve Drupal / override it. - - drupal-root:/var/www/drupal + - ../../codebase:/var/www/drupal:delegated deploy: resources: limits: @@ -84,6 +82,5 @@ services: reservations: memory: 2G volumes: - drupal-root: {} drupal-sites-data: {} - code-server-data: {} + code-server-data: {} \ No newline at end of file