-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# References | ||
|
||
- https://github.com/evershopcommerce/evershop | ||
- https://evershop.io/docs/development/getting-started/installation-guide | ||
|
||
# Notes | ||
|
||
After spawning up the docker containers, the webshop will be available on http://127.0.0.1:3000. | ||
|
||
You can access the admin dashboard at /admin. You must create a new admin user by Docker exec as follows: | ||
|
||
```` | ||
# exec into the evershop container | ||
docker exec -it evershop sh | ||
# creating a new admin user | ||
npm run user:create -- --email "[email protected]" --password "MySuperSecurePassword" --name "MyName" | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
version: '3.8' | ||
|
||
services: | ||
|
||
app: | ||
image: evershop/evershop:latest | ||
container_name: evershop | ||
restart: always | ||
environment: | ||
DB_HOST: database | ||
DB_PORT: 5432 | ||
DB_PASSWORD: postgres | ||
DB_USER: postgres | ||
DB_NAME: postgres | ||
depends_on: | ||
- database | ||
ports: | ||
- 3000:3000 | ||
expose: | ||
- 3000 | ||
#networks: | ||
# - proxy | ||
#labels: | ||
# - traefik.enable=true | ||
# - traefik.docker.network=proxy | ||
# - traefik.http.routers.evershop.rule=Host(`shop.example.com`) | ||
# - traefik.http.services.evershop.loadbalancer.server.port=3000 | ||
# # Part for optional traefik middlewares | ||
# - traefik.http.routers.evershop.middlewares=local-ipwhitelist@file,authelia@docker | ||
|
||
database: | ||
image: postgres:16 | ||
container_name: evershop-db | ||
restart: unless-stopped | ||
volumes: | ||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/evershop/psqldata:/var/lib/postgresql/data | ||
environment: | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_USER: postgres | ||
POSTGRES_DB: postgres | ||
expose: | ||
- 5432 | ||
#networks: | ||
# - proxy | ||
|
||
#networks: | ||
# proxy: | ||
# external: true |