43 lines
842 B
Text
43 lines
842 B
Text
version: "2.4"
|
|
|
|
services:
|
|
musictopus-www:
|
|
container_name: musictopus-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:
|
|
- musictopus-db
|
|
environment:
|
|
NODE_ENV: ${NODE_ENV}
|
|
PORT: ${PORT}
|
|
MONGODB_URI: ${MONGODB_URI}
|
|
SECRET: ${SECRET}
|
|
DISCOGS_TOKEN: ${DISCOGS_TOKEN}
|
|
FORMSPREE_ID: ${FORMSPREE_ID}
|
|
networks:
|
|
- musictopus
|
|
musictopus-db:
|
|
container_name: musictopus-db
|
|
image: mongo:4.4
|
|
restart: always
|
|
ports:
|
|
- 27617:27017
|
|
networks:
|
|
- musictopus
|
|
volumes:
|
|
- ./dump:/dump
|
|
|
|
networks:
|
|
musictopus:
|
|
driver: bridge
|