dockware
Search…
Advanced Run
Let's talk about an advanced setup for running Shopware 6.
The easy first run is perfect to immediately start Shopware, but does not persist any data or allows you to reuse that Shopware 6 instance again after restarting your host.
Use this content and place it in a file called docker-compose.yml.
It will use internal Docker volumes to persist your database and everything that is stored within your DocRoot, such as "media" files, "download" files and more.
1
version: "3"
2
3
services:
4
5
shopware:
6
image: dockware/play:latest
7
container_name: shopware
8
ports:
9
- "80:80"
10
networks:
11
- web
12
13
networks:
14
web:
15
external: false
Copied!
Now start dockware with this command from the terminal with the directory that contains your yaml file as working directory:
1
docker-compose up -d
Copied!
The option "-d" means "detached" and makes sure your container isn't quit when you close your terminal. If you still want to see the output of dockware, use this command.ON HOST
1
docker logs -f shopware
Copied!
You can also find some other and deeper examples in our dockware examples Git Repo
If you are looking for passwords and default credentials of Shopware and dockware, please take a look at this page: Default Credentials

Last modified 7mo ago
Copy link
Contents