2022-02-13 14:07:25 +01:00
|
|
|
version: "2.4"
|
|
|
|
|
|
|
|
services:
|
2022-02-17 09:37:25 +01:00
|
|
|
mymusiclibrary-www:
|
|
|
|
container_name: mymusiclibrary-www
|
2022-02-13 14:07:25 +01:00
|
|
|
image: "node:16"
|
|
|
|
restart: always
|
|
|
|
user: "node"
|
|
|
|
working_dir: /home/node/app
|
|
|
|
command: >
|
|
|
|
bash -c "
|
|
|
|
yarn install &&
|
2022-02-17 09:45:58 +01:00
|
|
|
yarn run:all"
|
2022-02-13 14:07:25 +01:00
|
|
|
volumes:
|
|
|
|
- ./:/home/node/app
|
|
|
|
- /home/node/node_modules
|
|
|
|
ports:
|
|
|
|
- 3001:3001
|
|
|
|
depends_on:
|
2022-02-17 09:37:25 +01:00
|
|
|
- mymusiclibrary-db
|
2022-02-13 14:07:25 +01:00
|
|
|
environment:
|
2022-02-15 11:03:20 +01:00
|
|
|
NODE_ENV: ${NODE_ENV}
|
|
|
|
DISCOGS_TOKEN: ${DISCOGS_TOKEN}
|
2022-02-13 14:07:25 +01:00
|
|
|
networks:
|
2022-02-17 09:37:25 +01:00
|
|
|
- mymusiclibrary
|
|
|
|
mymusiclibrary-db:
|
|
|
|
container_name: mymusiclibrary-db
|
2022-02-13 14:07:25 +01:00
|
|
|
image: mongo:latest
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 27617:27017
|
|
|
|
networks:
|
2022-02-17 09:37:25 +01:00
|
|
|
- mymusiclibrary
|
2022-02-13 14:07:25 +01:00
|
|
|
|
|
|
|
networks:
|
2022-02-17 09:37:25 +01:00
|
|
|
mymusiclibrary:
|
2022-02-13 14:07:25 +01:00
|
|
|
driver: bridge
|