add evershop

This commit is contained in:
L4RM4ND
2023-11-07 10:28:43 +01:00
parent 5f6d4bf0c7
commit e9d732ee2a
3 changed files with 68 additions and 1 deletions

View File

@@ -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 "myemail@example.com" --password "MySuperSecurePassword" --name "MyName"
````

View File

@@ -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