MusicTopus/docker-compose.yml.prod

44 lines
844 B
Text
Raw Normal View History

2022-02-13 14:07:25 +01:00
version: "2.4"
services:
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 &&
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:
- musictopus-db
2022-02-13 14:07:25 +01:00
environment:
2022-02-15 11:03:20 +01:00
NODE_ENV: ${NODE_ENV}
PORT: ${PORT}
MONGODB_URI: ${MONGODB_URI}
SECRET: ${SECRET}
2022-02-15 11:03:20 +01:00
DISCOGS_TOKEN: ${DISCOGS_TOKEN}
FORMSPREE_ID: ${FORMSPREE_ID}
2022-02-13 14:07:25 +01:00
networks:
- musictopus
musictopus-db:
container_name: musictopus-db
image: mongo:4.4
2022-02-13 14:07:25 +01:00
restart: always
ports:
- 27617:27017
networks:
- musictopus
2022-02-18 22:44:03 +01:00
volumes:
- ./dump:/dump
2022-02-13 14:07:25 +01:00
networks:
musictopus:
2022-02-13 14:07:25 +01:00
driver: bridge