Damien Broqua
60f96d75ef
#issue-17 Co-authored-by: dbroqua <contact@darkou.fr> Reviewed-on: dbroqua/MyMusicLibrary#18 Co-authored-by: Damien Broqua <dbroqua@noreply.localhost> Co-committed-by: Damien Broqua <dbroqua@noreply.localhost>
43 lines
879 B
Text
43 lines
879 B
Text
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:all"
|
|
volumes:
|
|
- ./:/home/node/app
|
|
- /home/node/node_modules
|
|
ports:
|
|
- 3001:3001
|
|
depends_on:
|
|
- mymusiclibrary-db
|
|
environment:
|
|
NODE_ENV: ${NODE_ENV}
|
|
PORT: ${PORT}
|
|
MONGODB_URI: ${MONGODB_URI}
|
|
SECRET: ${SECRET}
|
|
DISCOGS_TOKEN: ${DISCOGS_TOKEN}
|
|
FORMSPREE_ID: ${FORMSPREE_ID}
|
|
networks:
|
|
- mymusiclibrary
|
|
mymusiclibrary-db:
|
|
container_name: mymusiclibrary-db
|
|
image: mongo:latest
|
|
restart: always
|
|
ports:
|
|
- 27617:27017
|
|
networks:
|
|
- mymusiclibrary
|
|
volumes:
|
|
- ./dump:/dump
|
|
|
|
networks:
|
|
mymusiclibrary:
|
|
driver: bridge
|