# compose.yml
services:
drupal:
image: smartbeespl/drupal-base:php8.3
restart: unless-stopped
volumes:
- .:/opt/drupal
# Dockerfile
FROM smartbeespl/drupal-base:php8.3
ARG UID=1000
ARG GID=1000
# Update source code.
COPY --chown=$UID:$GID . .
RUN set -xe; \
# Install composer dependencies.
composer install --no-cache --no-dev; \
# Build frontend assets.
yarn; yarn build; rm -rf node_modules
# compose.yml
services:
drupal:
build:
context: .
dockerfile: Dockerfile
args:
UID: ${UID:-1000}
GID: ${GID:-1000}
restart: unless-stopped
volumes:
- ./data/drupal/files:/opt/drupal/web/sites/default/files
- ./data/drupal/private_files:/opt/drupal/private_files
Content type
Image
Digest
sha256:7087da896…
Size
185.4 MB
Last updated
about 6 hours ago
docker pull smartbeespl/drupal-base:php8.2