You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
paste/docker-compose.yml

28 lines
442 B
YAML

version: "3"
services:
app:
image: node:latest
4 years ago
command: npm start
restart: unless-stopped
working_dir: /app
depends_on:
4 years ago
- db
environment:
- NODE_ENV=production
- NODE_CONFIG_ENV=docker
volumes:
4 years ago
- .:/app:Z
ports:
4 years ago
- "80:80"
db:
image: mongo:latest
restart: unless-stopped
volumes:
4 years ago
- ./db:/data/db:Z
expose:
4 years ago
- 27017
ports:
4 years ago
- "27017:27017"