New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing full featured example #63
Comments
After a lot trial and error, I came to this setup. Feel free to include this in the docs. I'm sure it will help a lot of more developers. Would be also helpful if the unclear points could be clarified ( Update: It seems Local .env
Local docker-compose.ymlversion: "3"
services:
shopware:
image: dockware/play:latest
container_name: shopware_app
environment:
PHP_VERSION: 8.0
volumes:
- "shop_volume:/var/www/html"
- ./.env:/var/www/html/.env
ports:
- "8766:80"
networks:
- web
db:
image: mysql:5.7
container_name: shopware_db
networks:
- web
command:
- '--default-authentication-plugin=mysql_native_password'
- '--character-set-server=utf8mb4'
- '--collation-server=utf8mb4_unicode_ci'
- '--skip-name-resolve'
volumes:
- db_volume:/var/lib/mysql/:cached
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'false'
### Database initialization config:
MYSQL_ROOT_HOST: ${DOCKER_MYSQL_INIT_ROOT_HOST}
MYSQL_ROOT_PASSWORD: ${DOCKER_MYSQL_INIT_ROOT_PASSWORD}
MYSQL_HOST: ${DOCKER_MYSQL_INIT_HOST}
MYSQL_USER: ${DB_USERNAME}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_DATABASE}
# ports:
# - 3305:3306 # Access from outside not necessary
restart: always
# redis:
# image: redis:5.0.6
# container_name: shopware_redis
# networks:
# - web
# elasticsearch:
# container_name: shopware_elasticsearch
# image: elastic/elasticsearch:7.1.1
# environment:
# - "ES_JAVA_OPTS=-Xms512m -Xmx512m"
# - discovery.type=single-node
volumes:
db_volume:
driver: local
shop_volume:
driver: local
networks:
web:
external: false |
hi thank you for this i think this is a bit too much :) you can just spawn a simple docker database and connect to it with the connection string. i guess this page is what you where looking for? https://docs.dockware.io/faq/dockware-and-other-images there are also lots of examples in our github repo i hope this helps you |
@boxblinkracer To be honest, I never use these docker one-line start image commands, except for few use-cases with testing. In most cases always docker-compose. Despite I really very appreciate this project, I found the docs very confusing when being new to dockware. However for me is everything clear for now. Except I don't understand why the dockware/play image comes with example data included and not starting with the installer (that can install example data itself), is this possible anyway? Otherwise I have to delete them every time |
hi, there are also some videos with step by step explanation..maybe this helps too: i dont know what you mean with one-liner...i never said anything about a one liner :) regarding the demo data....for us, there are 2 types of projects.... so i'm not quite sure why you would need a blank shopware? |
Okay, seems I have a rare use-case. This use-case will come back, when the shop is running on prod and we need to have it running locally for further development. Then our backend would sync all necessary dummy data, and that would get mixed up with the demo data. However for now after deleting the demo data by hand and copy our APP_SECRET and INSTANCE_ID, it is working good. |
hi ok so 2 things that could help a) i dont know what happened to the permission but this fixes it b) what we do in this case is this maybe it helps you :) |
Thanks for the support. Its working for now |
Is your feature request related to a problem? Please describe.
This project seems to be great. But I am really missing a full featured example config. It is really hard to find each tiny snippet everywhere.
Describe the solution you'd like
Full featured example
Additional context
This is my docker-compose file. I can't get it running because I haven't found yet, how to advise
dockware/play
to use a different database port (I guess). Of course I am not using the default ports 80, 3306 aso. These are important ports that are either already allocated, oder have to stay free for other tools.The default shopware setup has .env variables like
APP_ENV
,APP_SECRET
,APP_URL
, ... . How can I adjust them?The text was updated successfully, but these errors were encountered: