2022-02-13 14:07:25 +01:00
|
|
|
version: "2.4"
|
|
|
|
|
|
|
|
services:
|
2022-03-02 16:09:02 +01:00
|
|
|
musictopus-www:
|
|
|
|
container_name: musictopus-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 &&
|
|
|
|
yarn watch"
|
|
|
|
volumes:
|
|
|
|
- ./:/home/node/app
|
|
|
|
- /home/node/node_modules
|
|
|
|
ports:
|
|
|
|
- 3001:3001
|
|
|
|
depends_on:
|
2022-03-02 16:09:02 +01:00
|
|
|
- musictopus-db
|
2022-02-13 14:07:25 +01:00
|
|
|
environment:
|
2022-02-15 11:03:20 +01:00
|
|
|
NODE_ENV: ${NODE_ENV}
|
2022-02-22 14:50:07 +01:00
|
|
|
PORT: ${PORT}
|
|
|
|
MONGODB_URI: ${MONGODB_URI}
|
|
|
|
SECRET: ${SECRET}
|
2022-02-15 11:03:20 +01:00
|
|
|
DISCOGS_TOKEN: ${DISCOGS_TOKEN}
|
2022-02-22 14:50:07 +01:00
|
|
|
FORMSPREE_ID: ${FORMSPREE_ID}
|
2022-02-13 14:07:25 +01:00
|
|
|
networks:
|
2022-03-02 16:09:02 +01:00
|
|
|
- musictopus
|
|
|
|
musictopus-db:
|
|
|
|
container_name: musictopus-db
|
2022-03-02 16:11:06 +01:00
|
|
|
image: mongo:4.4
|
2022-02-13 14:07:25 +01:00
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- 27617:27017
|
|
|
|
networks:
|
2022-03-02 16:09:02 +01:00
|
|
|
- musictopus
|
2022-02-22 07:49:21 +01:00
|
|
|
volumes:
|
|
|
|
- ./dump:/dump
|
2022-02-13 14:07:25 +01:00
|
|
|
|
|
|
|
networks:
|
2022-03-02 16:09:02 +01:00
|
|
|
musictopus:
|
2022-02-13 14:07:25 +01:00
|
|
|
driver: bridge
|