MusicTopus/docker-compose.yml.prod

56 lines
1.3 KiB
Text
Raw Permalink Normal View History

2022-02-13 14:07:25 +01:00
version: "2.4"
services:
musictopus-www:
container_name: musictopus-www
image: "node:18"
2022-02-13 14:07:25 +01:00
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}
MATOMO_URL: ${MATOMO_URL}
2022-03-14 16:28:08 +01:00
MATOMO_ID: ${MATOMO_ID}
SITE_NAME: ${SITE_NAME}
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
S3_BASEFOLDER: ${S3_BASEFOLDER}
S3_BUCKET: ${S3_BUCKET}
S3_ENDPOINT: ${S3_ENDPOINT}
S3_SIGNATURE: ${S3_SIGNATURE}
JOBS_HEADER_KEY: ${JOBS_HEADER_KEY}
JOBS_HEADER_VALUE: ${JOBS_HEADER_VALUE}
REGISTRATION_OPEN: ${REGISTRATION_OPEN}
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