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

34 lines
702 B
YAML
Raw Permalink Normal View History

2023-07-14 11:03:01 +00:00
version: "3"
services:
payload:
2024-01-20 02:25:52 +00:00
image: docker.io/library/node:18-alpine
2023-07-14 11:03:01 +00:00
ports:
- "${PAYLOAD_PORT}:${PAYLOAD_PORT}"
volumes:
- .:/home/node/app
- node_modules:/home/node/app/node_modules
working_dir: /home/node/app/
2024-04-14 12:49:11 +00:00
command: sh -c "npm run prod"
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:
2024-01-20 02:25:52 +00:00
image: docker.io/library/mongo:latest
2023-07-14 11:03:01 +00:00
ports:
- "${MONGODB_PORT}:27017"
command:
- --storageEngine=wiredTiger
volumes:
- ./mongo:/data/db
logging:
driver: none
volumes:
node_modules: