ecomm/docker-compose.yaml

31 lines
666 B
YAML
Raw Normal View History

2023-06-08 11:05:28 +00:00
version: '3'
services:
2023-06-10 22:22:34 +00:00
app:
build:
context: .
dockerfile: Dockerfile
ports:
- 3000:3000
volumes:
- ./src:/app/src
- ./dist:/app/dist
depends_on:
- mongodb
2023-06-08 11:05:28 +00:00
mongodb:
image: arm64v8/mongo:4.0
restart: always
ports:
- 27017:27017
volumes:
- structshare_vol:/data/db
- ./init-scripts/init.js:/docker-entrypoint-initdb.d/mongo-init.js
environment:
2023-06-10 22:22:34 +00:00
- MONGO_INITDB_DATABASE=your-database-name
- MONGO_INITDB_ROOT_USERNAME=your-username
- MONGO_INITDB_ROOT_PASSWORD=your-password
2023-06-08 11:05:28 +00:00
platform: linux/arm64/v8
expose:
- 27017
volumes:
2023-06-10 22:22:34 +00:00
structshare_vol: