Skip to content

Commit 543018b

Browse files
committed
Fix setup for devcontainers
Since PostgreSQL 18, data stored within the Docker volume is also version-prefixed. Thus, we need to change the path slightly. Furthermore, we don't want the web service to be started automatically when _building_ the devcontainer. Otherwise, the building process won't finish at all.
1 parent f4d0eb1 commit 543018b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.devcontainer/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ services:
3131
networks:
3232
- default
3333
volumes:
34-
- postgres-data:/var/lib/postgresql/data
34+
- postgres-data:/var/lib/postgresql
3535
environment:
3636
POSTGRES_USER: postgres
3737
POSTGRES_PASSWORD: postgres

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@
4444

4545

4646
// Use 'postCreateCommand' to run commands after the container is created.
47-
"postCreateCommand": "bin/setup"
47+
"postCreateCommand": "bin/setup --skip-server"
4848
}

0 commit comments

Comments
 (0)