Skip to content

Commit

Permalink
minor Sylius#973 [Maintenance] Update README file (Wojdylak)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.12 branch.

Discussion
----------



Commits
-------

dae43e2 [Maintenance] Update README file
  • Loading branch information
GSadee authored Apr 23, 2024
2 parents 73b3ea0 + dae43e2 commit 01b35c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 24 deletions.
21 changes: 1 addition & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 3 additions & 4 deletions compose.override.dist.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.8"
services:
php:
image: ghcr.io/sylius/sylius-php:8.2-fixuid-xdebug-alpine
Expand Down Expand Up @@ -41,15 +40,15 @@ services:
volumes:
- mysql-data:/var/lib/mysql:rw
ports:
- "8051:3306"
- "3306:3306"
nginx:
volumes:
- ./public:/srv/sylius/public:ro
# if you develop on Linux, you may use a bind-mounted host directory instead
# - ./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}
Expand All @@ -64,7 +63,7 @@ services:
- ./public:/srv/sylius/public:rw,delegated
mailhog:
ports:
- "8052:8025"
- "8025:8025"

volumes:
mysql-data:
Expand Down

0 comments on commit 01b35c1

Please sign in to comment.