diff options
author | Robin Windey <ro.windey@gmail.com> | 2023-03-27 07:05:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-31 13:53:04 +0000 |
commit | a32e8db7031bbb3e183afdf8cabc9b16910dec86 (patch) | |
tree | b1c83168bd14c2ffc86035cc5d98b7b13c63fe45 /.devcontainer/docker-compose.yml | |
parent | 79fb336d35953a1bad648e256c5f57eee2809041 (diff) | |
download | nextcloud-server-a32e8db7031bbb3e183afdf8cabc9b16910dec86.tar.gz nextcloud-server-a32e8db7031bbb3e183afdf8cabc9b16910dec86.zip |
Minor DevContainer adjustments
* Add gnupg2 to be able to sign commits
* Make sure /var/www/html always belongs to www-data
* Add Git-History plugin
* Introduce dedicated entrypoint script
* Store Postgres database data in volume to be persistent
* Cleaner check if NC is already installed in setup.sh
* Add composer to DevContainer
Signed-off-by: GitHub <noreply@github.com>
Diffstat (limited to '.devcontainer/docker-compose.yml')
-rw-r--r-- | .devcontainer/docker-compose.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index cb46f3ce800..a30bba74a66 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -6,7 +6,7 @@ services: - .:/workspace:cached - /var/run/docker.sock:/var/run/docker-host.sock - ..:/var/www/html - command: /bin/sh -c "chown -R www-data:www-data /var/www/html && service apache2 start && while sleep 1000; do :; done" + command: /var/www/html/.devcontainer/entrypoint.sh ports: - 80:80 - 8080:8080 @@ -17,6 +17,9 @@ services: restart: always environment: POSTGRES_PASSWORD: postgres + PGDATA: /data/postgres + volumes: + - db:/data/postgres network_mode: service:nextclouddev adminer: @@ -28,3 +31,6 @@ services: image: mailhog/mailhog restart: always network_mode: service:nextclouddev + +volumes: + db: |