dashboard.accords-library.com/docker-compose.yml

35 lines
809 B
YAML
Raw Normal View History

2023-07-14 11:03:01 +00:00
version: "3"
services:
payload:
image: node:18-alpine
ports:
- "${PAYLOAD_PORT}:${PAYLOAD_PORT}"
volumes:
- .:/home/node/app
- node_modules:/home/node/app/node_modules
working_dir: /home/node/app/
2023-10-14 09:27:32 +00:00
command: sh -c "npm install && npm run generate:types && npm run dev"
2023-10-29 23:10:11 +00:00
# command: sh -c "npm install && npm run generate:types && npm run build:payload && npm run serve"
2023-07-14 11:03:01 +00:00
depends_on:
- mongo
environment:
MONGODB_URI: ${MONGODB_URI}
PAYLOAD_SECRET: ${PAYLOAD_SECRET}
PORT: ${PAYLOAD_PORT}
NODE_ENV: development
mongo:
image: mongo:latest
ports:
- "${MONGODB_PORT}:27017"
command:
- --storageEngine=wiredTiger
volumes:
- ./mongo:/data/db
logging:
driver: none
volumes:
node_modules: