Skip to content

Commit

Permalink
Add Fix for issue related to codeserver: Islandora-Devops#372
Browse files Browse the repository at this point in the history
  • Loading branch information
kylehuynh205 committed Sep 12, 2024
1 parent 8b9e384 commit fc7a17a
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions build/docker-compose/docker-compose.code-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
#
# References:
# - https://www.drupal.org/docs
version: '3.7'
networks:
default:
internal: true
gateway:
external: true
secrets:
CODE_SERVER_PASSWORD:
file: "../../secrets/live/CODE_SERVER_PASSWORD"
Expand Down Expand Up @@ -41,11 +44,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
Expand Down Expand Up @@ -76,14 +75,13 @@ 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:
memory: ${DRUPAL_MEMORY_LIMIT:-5G}
reservations:
memory: 2G
volumes:
drupal-root: {}
drupal-sites-data: {}
code-server-data: {}
code-server-data: {}

0 comments on commit fc7a17a

Please sign in to comment.