From dae43e2256b07b6b9b48a018a5392560f0c9eb19 Mon Sep 17 00:00:00 2001 From: Wojdylak Date: Tue, 23 Apr 2024 12:59:41 +0200 Subject: [PATCH] [Maintenance] Update README file --- README.md | 21 +-------------------- compose.override.dist.yml | 7 +++---- 2 files changed, 4 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 7673a32f7c..d3296a26ca 100644 --- a/README.md +++ b/README.md @@ -47,28 +47,9 @@ For more detailed instruction please visit [installation chapter in our docs](ht #### Development Make sure you have installed [Docker](https://docs.docker.com/get-docker/) on your local machine. -Execute `docker compose up -d` in your favorite terminal and wait some time until the services will be ready. You might want to see docker logs. +Execute `make init` in your favorite terminal and wait some time until the services will be ready. Then enter `localhost` in your browser or execute `open localhost` in your terminal. -#### Production - -The simplest way to deploy your Sylius store via Docker is via `docker-compose.prod.yml` configuration file. -To do that you need to install [Docker](https://docs.docker.com/get-docker/) on your VPS and define `MYSQL_PASSWORD` environment. -Then execute `docker compose -f docker-compose.prod.yml up -d` command in your terminal. The `MYSQL_PASSWORD` env will be automatically -applied to the rest of the config. - -> When using a Virtual Private Server (VPS) we recommend having at least 2GB of RAM memory - -**Quick deploy:** -```bash -curl -fsSL https://get.docker.com -o get-docker.sh -sudo sh get-docker.sh - -export MYSQL_PASSWORD=SLyPJLaye7 - -docker compose -f docker-compose.prod.yml up -d -docker compose -f docker-compose.prod.yml exec php bin/console sylius:fixtures:load --no-interaction -``` ## Troubleshooting diff --git a/compose.override.dist.yml b/compose.override.dist.yml index 86a1df7c26..14c16651bd 100644 --- a/compose.override.dist.yml +++ b/compose.override.dist.yml @@ -1,4 +1,3 @@ -version: "3.8" services: php: image: ghcr.io/sylius/sylius-php:8.2-fixuid-xdebug-alpine @@ -41,7 +40,7 @@ services: volumes: - mysql-data:/var/lib/mysql:rw ports: - - "8051:3306" + - "3306:3306" nginx: volumes: - ./public:/srv/sylius/public:ro @@ -49,7 +48,7 @@ services: # - ./public/media:/srv/sylius/public/media:ro - public-media:/srv/sylius/public/media:ro,nocopy ports: - - "8050:80" + - "80:80" nodejs: image: node:${NODE_VERSION:-18}-alpine user: ${DOCKER_USER:-1000:1000} @@ -64,7 +63,7 @@ services: - ./public:/srv/sylius/public:rw,delegated mailhog: ports: - - "8052:8025" + - "8025:8025" volumes: mysql-data: