mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2025-11-24 01:14:27 +01:00
add evershop
This commit is contained in:
18
examples/evershop/README.md
Normal file
18
examples/evershop/README.md
Normal 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"
|
||||
````
|
||||
48
examples/evershop/docker-compose.yml
Normal file
48
examples/evershop/docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user