Added docker config
This commit is contained in:
parent
e495e11198
commit
2218d2663b
1 changed files with 36 additions and 0 deletions
36
docker-compose.yml
Normal file
36
docker-compose.yml
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
version: "2.4"
|
||||||
|
|
||||||
|
services:
|
||||||
|
nodecdtheque-www:
|
||||||
|
container_name: nodecdtheque-www
|
||||||
|
image: "node:16"
|
||||||
|
restart: always
|
||||||
|
user: "node"
|
||||||
|
working_dir: /home/node/app
|
||||||
|
command: >
|
||||||
|
bash -c "
|
||||||
|
yarn install &&
|
||||||
|
yarn watch"
|
||||||
|
volumes:
|
||||||
|
- ./:/home/node/app
|
||||||
|
- /home/node/node_modules
|
||||||
|
ports:
|
||||||
|
- 3001:3001
|
||||||
|
depends_on:
|
||||||
|
- nodecdtheque-db
|
||||||
|
environment:
|
||||||
|
NODE_ENV: "development"
|
||||||
|
networks:
|
||||||
|
- nodecdtheque
|
||||||
|
nodecdtheque-db:
|
||||||
|
container_name: nodecdtheque-db
|
||||||
|
image: mongo:latest
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 27617:27017
|
||||||
|
networks:
|
||||||
|
- nodecdtheque
|
||||||
|
|
||||||
|
networks:
|
||||||
|
nodecdtheque:
|
||||||
|
driver: bridge
|
Loading…
Reference in a new issue