Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions guides/hosting/installation-updates/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ This is just an example compose file to demonstrate what the services could look

```yaml
x-environment: &shopware
image: local
build:
context: .
environment:
Expand All @@ -186,11 +185,22 @@ services:
database:
image: mariadb:11.4

init-perm:
<<: *shopware
user: "root"
entrypoint: >
chown 82:82
/var/www/html/files
/var/www/html/public/theme
/var/www/html/public/media
/var/www/html/public/thumbnail
/var/www/html/public/sitemap

init:
<<: *shopware
entrypoint: /setup
depends_on:
db:
database:
condition: service_started
init-perm:
condition: service_completed_successfully
Expand All @@ -217,6 +227,13 @@ services:
init:
condition: service_completed_successfully
entrypoint: [ "php", "bin/console", "scheduled-task:run" ]

volumes:
files:
theme:
media:
thumbnail:
sitemap:
```

<PageRef page="https://github.com/shopwareLabs/example-docker-repository/" title="Example Repository with fully working setup" target="_blank" />
Expand Down
Loading