Skip to content

Instantly share code, notes, and snippets.

@shiftenterdev
Created May 5, 2023 17:27
Show Gist options
  • Save shiftenterdev/f77e96192b751946700ff4ac15453404 to your computer and use it in GitHub Desktop.
Save shiftenterdev/f77e96192b751946700ff4ac15453404 to your computer and use it in GitHub Desktop.
Shopware Dockware Docker Compose
version: '3'
services:
shopware:
container_name: shopware
image: dockware/dev:latest
ports:
- "22:22" # ssh
- "443:443"
- "80:80" # apache2
- "8888:8888" # watch admin
- "9998:9998" # watch storefront proxy (not needed if you start with "make watch-storefront")
- "9999:9999" # watch storefront
# volumes: ### MAKE SURE YOU BOOT THE FIRST TIME WITHOUT THIS VOLUME, OTHERWISE IT WILL OVERRIDE THE FOLDER AND NO FILES WILL EXIST, READ THE readme.md ###
# - "db_volume:/var/lib/mysql"
# - "./src:/var/www/html"
networks:
- web
environment:
- XDEBUG_ENABLED=1
- PHP_VERSION=8.1
- SSH_USER=shopware
- SSH_PWD=password
- SW_CURRENCY=EUR
db:
image: mariadb:10.6
container_name: mysql
networks:
- web
environment:
- MYSQL_ROOT_PASSWORD=hidden
- MYSQL_USER=shopuser
- MYSQL_PASSWORD=secret
- MYSQL_DATABASE=shopware
redis:
image: redis:6.0
container_name: redis
networks:
- web
elasticsearch:
image: elasticsearch:8.7.1
container_name: elasticsearch
networks:
- web
environment:
- "EA_JAVA_OPTS=-Xms512m -Xms512m"
- discovery.type=single-node
## ***********************************************************************
## PERSISTENT DOCKER VOLUMES
## ***********************************************************************
volumes:
dw__shop_cache:
driver: local
db_volume:
driver: local
shop_volume:
driver: local
## ***********************************************************************
## NETWORKS
## ***********************************************************************
networks:
web:
external: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment