Created
February 4, 2025 18:43
-
-
Save syoh/ea74f96a542141493f04ed0dcd2c4a2a to your computer and use it in GitHub Desktop.
Plain Drupal 10 in Devcontainer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"dockerComposeFile": "docker-compose.yml", | |
"service": "devcontainer", | |
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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