forked from dbroqua/MusicTopus
Added docker-compose for production
This commit is contained in:
parent
a502fe9088
commit
7b18c601c2
3 changed files with 39 additions and 2 deletions
37
docker-compose.yml.prod
Normal file
37
docker-compose.yml.prod
Normal file
|
@ -0,0 +1,37 @@
|
|||
version: "2.4"
|
||||
|
||||
services:
|
||||
mymusiclibrary-www:
|
||||
container_name: mymusiclibrary-www
|
||||
image: "node:16"
|
||||
restart: always
|
||||
user: "node"
|
||||
working_dir: /home/node/app
|
||||
command: >
|
||||
bash -c "
|
||||
yarn install &&
|
||||
yarn run"
|
||||
volumes:
|
||||
- ./:/home/node/app
|
||||
- /home/node/node_modules
|
||||
ports:
|
||||
- 3001:3001
|
||||
depends_on:
|
||||
- mymusiclibrary-db
|
||||
environment:
|
||||
NODE_ENV: ${NODE_ENV}
|
||||
DISCOGS_TOKEN: ${DISCOGS_TOKEN}
|
||||
networks:
|
||||
- mymusiclibrary
|
||||
mymusiclibrary-db:
|
||||
container_name: mymusiclibrary-db
|
||||
image: mongo:latest
|
||||
restart: always
|
||||
ports:
|
||||
- 27617:27017
|
||||
networks:
|
||||
- mymusiclibrary
|
||||
|
||||
networks:
|
||||
mymusiclibrary:
|
||||
driver: bridge
|
Loading…
Add table
Add a link
Reference in a new issue