Add customer API stub
This commit is contained in:
25
api-customer/docker-compose.yml
Normal file
25
api-customer/docker-compose.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
customer-api:
|
||||
build: .
|
||||
container_name: "clask-API"
|
||||
ports:
|
||||
- "5000:5000"
|
||||
depends_on:
|
||||
- mongo
|
||||
environment:
|
||||
- MONGO_URI=mongodb://mongo:27017/mydb
|
||||
|
||||
mongo:
|
||||
image: mongo:latest
|
||||
container_name: "customer-database"
|
||||
environment:
|
||||
- MONGO_INITDB_DATABASE=customer-db
|
||||
- MONGO_INITDB_ROOT_PASSWORD=secret
|
||||
- MONGO_INITDB_ROOT_USERNAME=root
|
||||
ports:
|
||||
- "27017:27017"
|
||||
volumes:
|
||||
- ./mongo-data:/data/db
|
||||
- ./mongo-init:/docker-entrypoint-initdb.d
|
||||
Reference in New Issue
Block a user