41 lines
815 B
YAML
41 lines
815 B
YAML
|
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
|
||
|
image: mongo:latest
|
||
|
restart: always
|
||
|
networks:
|
||
|
- images-upload
|
||
|
|
||
|
networks:
|
||
|
images-upload:
|
||
|
driver: bridge
|