ecomm/docker-compose.yaml
2023-06-11 01:24:50 +03:00

30 lines
666 B
YAML

version: '3'
services:
app:
build:
context: .
dockerfile: Dockerfile
ports:
- 3000:3000
volumes:
- ./src:/app/src
- ./dist:/app/dist
depends_on:
- mongodb
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:
- MONGO_INITDB_DATABASE=your-database-name
- MONGO_INITDB_ROOT_USERNAME=your-username
- MONGO_INITDB_ROOT_PASSWORD=your-password
platform: linux/arm64/v8
expose:
- 27017
volumes:
structshare_vol: