AtSea Shop演示应用的数据库镜像,用于支撑产品库存、客户数据及订单管理,是完整电商演示系统的核心数据存储组件。
AtSea Shop Demonstration Application
The AtSea Shop is a demonstration application comprised of:
- Java REST application written using Spring-Boot,
- a database for product inventory, customer data, and orders,
- a React shopping cart,
- a NGINX reverse proxy implementing https,
- a payment gateway to simulate certificate management
Requirements
This example uses features in Docker 17.05 CE Edge. Install this version to run the example.
Building and Running the AtSea Shop
Secrets
This application uses Docker secrets to secure the application components. The reverse proxy requires creating a certificate that is stored as a secret and the payment also requires a password stored as a secret. To create a certificate and add as a secret:
mkdir certs openssl req -newkey rsa:4096 -nodes -sha256 -keyout certs/domain.key -x509 -days 365 -out certs/domain.crt docker secret create revprox_cert certs/domain.crt docker secret create revprox_key certs/domain.key docker secret create postgres_password certs/domain.key
To create a secret for staging the payment gateway:
echo staging | docker secret create staging_token -
Run as an application
To run the AtSea shop as an application:
docker-compose up --build
Deploy to a swarm
#If you need to create a Swarm docker swarm init docker stack deploy -c docker-stack.yml atsea
A simplified development environment
This compose file creates a simplified development environment consisting of only the application server and the database.
docker-compose --file docker-compose-dev.yml up --build
The AtSea Shop
The URL for the content is http://localhost:8080/
REST API
Documentation for REST calls: REST API
镜像拉取方式
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
轩辕镜像加速拉取命令点我查看更多 atsea_db 镜像标签
DockerHub 原生拉取命令
用户好评
来自真实用户的反馈,见证轩辕镜像的优质服务