simple-images-upload/docker-compose.yml

45 lines
881 B
YAML
Raw Normal View History

2023-09-23 20:54:44 +02:00
version: "2.4"
services:
images-upload-www:
container_name: images-upload-www
image: "node:18"
restart: always
user: "node"
working_dir: /home/node/app
command: >
bash -c "
npm install &&
npm run watch"
volumes:
- ./:/home/node/app
- /home/node/node_modules
ports:
- 2666:3000
depends_on:
- images-upload-db
environment:
NODE_ENV: ${NODE_ENV}
PORT: ${PORT}
MONGODB_URI: ${MONGODB_URI}
SECRET: ${SECRET}
TRUST_PROXY: ${TRUST_PROXY}
PAGINATION: ${PAGINATION}
DEBUG: "*"
networks:
- images-upload
images-upload-db:
container_name: images-upload-db
2023-09-24 09:49:26 +02:00
image: mongo:latest
2023-09-23 20:54:44 +02:00
restart: always
2023-09-23 22:50:22 +02:00
volumes:
- ./db:/data/db
ports:
2023-09-24 09:49:26 +02:00
- 27018:27017
2023-09-23 20:54:44 +02:00
networks:
- images-upload
networks:
images-upload:
driver: bridge