Skip to content

Instantly share code, notes, and snippets.

@syoh
Created February 4, 2025 18:43
Show Gist options
  • Save syoh/ea74f96a542141493f04ed0dcd2c4a2a to your computer and use it in GitHub Desktop.
Save syoh/ea74f96a542141493f04ed0dcd2c4a2a to your computer and use it in GitHub Desktop.
Plain Drupal 10 in Devcontainer
{
"dockerComposeFile": "docker-compose.yml",
"service": "devcontainer",
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
}
version: '3.8'
services:
devcontainer:
image: drupal:10-apache
ports:
- 127.0.0.1:8080:80
volumes:
- ../..:/workspaces:cached
- drupal-data:/opt/drupal/web:cached
# command: sleep infinity
db:
image: postgres:latest
restart: unless-stopped
volumes:
- postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: postgres
network_mode: service:devcontainer
volumes:
postgres-data:
drupal-data:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment