Added /data for mongo
This commit is contained in:
parent
e3f47a7bf7
commit
8289ed7116
2 changed files with 58 additions and 56 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -124,3 +124,4 @@ public/css
|
||||||
public/js
|
public/js
|
||||||
docker-compose.yml
|
docker-compose.yml
|
||||||
dump
|
dump
|
||||||
|
data
|
||||||
|
|
|
@ -1,61 +1,62 @@
|
||||||
version: "2.4"
|
version: "2.4"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
musictopus-www:
|
musictopus-www:
|
||||||
container_name: musictopus-www
|
container_name: musictopus-www
|
||||||
image: "node:18"
|
image: "node:18"
|
||||||
restart: always
|
restart: always
|
||||||
user: "node"
|
user: "node"
|
||||||
working_dir: /home/node/app
|
working_dir: /home/node/app
|
||||||
command: >
|
command: >
|
||||||
bash -c "
|
bash -c "
|
||||||
yarn install &&
|
yarn install &&
|
||||||
yarn watch"
|
yarn watch"
|
||||||
volumes:
|
volumes:
|
||||||
- ./:/home/node/app
|
- ./:/home/node/app
|
||||||
- /home/node/node_modules
|
- /home/node/node_modules
|
||||||
ports:
|
ports:
|
||||||
- 3001:3001
|
- 3001:3001
|
||||||
depends_on:
|
depends_on:
|
||||||
- musictopus-db
|
- musictopus-db
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: ${NODE_ENV}
|
NODE_ENV: ${NODE_ENV}
|
||||||
PORT: ${PORT}
|
PORT: ${PORT}
|
||||||
MONGODB_URI: ${MONGODB_URI}
|
MONGODB_URI: ${MONGODB_URI}
|
||||||
SECRET: ${SECRET}
|
SECRET: ${SECRET}
|
||||||
DISCOGS_TOKEN: ${DISCOGS_TOKEN}
|
DISCOGS_TOKEN: ${DISCOGS_TOKEN}
|
||||||
FORMSPREE_ID: ${FORMSPREE_ID}
|
FORMSPREE_ID: ${FORMSPREE_ID}
|
||||||
MATOMO_URL: ${MATOMO_URL}
|
MATOMO_URL: ${MATOMO_URL}
|
||||||
MATOMO_ID: ${MATOMO_ID}
|
MATOMO_ID: ${MATOMO_ID}
|
||||||
SITE_NAME: ${SITE_NAME}
|
SITE_NAME: ${SITE_NAME}
|
||||||
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
|
AWS_ACCESS_KEY_ID: ${AWS_ACCESS_KEY_ID}
|
||||||
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
|
AWS_SECRET_ACCESS_KEY: ${AWS_SECRET_ACCESS_KEY}
|
||||||
S3_BASEFOLDER: ${S3_BASEFOLDER}
|
S3_BASEFOLDER: ${S3_BASEFOLDER}
|
||||||
S3_BUCKET: ${S3_BUCKET}
|
S3_BUCKET: ${S3_BUCKET}
|
||||||
S3_ENDPOINT: ${S3_ENDPOINT}
|
S3_ENDPOINT: ${S3_ENDPOINT}
|
||||||
S3_SIGNATURE: ${S3_SIGNATURE}
|
S3_SIGNATURE: ${S3_SIGNATURE}
|
||||||
JOBS_HEADER_KEY: ${JOBS_HEADER_KEY}
|
JOBS_HEADER_KEY: ${JOBS_HEADER_KEY}
|
||||||
JOBS_HEADER_VALUE: ${JOBS_HEADER_VALUE}
|
JOBS_HEADER_VALUE: ${JOBS_HEADER_VALUE}
|
||||||
REGISTRATION_OPEN: ${REGISTRATION_OPEN}
|
REGISTRATION_OPEN: ${REGISTRATION_OPEN}
|
||||||
MAIL_METHOD: ${MAIL_METHOD}
|
MAIL_METHOD: ${MAIL_METHOD}
|
||||||
MAIL_HOST: ${MAIL_HOST}
|
MAIL_HOST: ${MAIL_HOST}
|
||||||
MAIL_PORT: ${MAIL_PORT}
|
MAIL_PORT: ${MAIL_PORT}
|
||||||
MAIL_USER: ${MAIL_USER}
|
MAIL_USER: ${MAIL_USER}
|
||||||
MAIL_PASSWORD: ${MAIL_PASSWORD}
|
MAIL_PASSWORD: ${MAIL_PASSWORD}
|
||||||
MAIL_TO: ${MAIL_TO}
|
MAIL_TO: ${MAIL_TO}
|
||||||
networks:
|
networks:
|
||||||
- musictopus
|
- musictopus
|
||||||
musictopus-db:
|
musictopus-db:
|
||||||
container_name: musictopus-db
|
container_name: musictopus-db
|
||||||
image: mongo:4.4
|
image: mongo:4.4
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 27617:27017
|
- 27617:27017
|
||||||
networks:
|
networks:
|
||||||
- musictopus
|
- musictopus
|
||||||
volumes:
|
volumes:
|
||||||
- ./dump:/dump
|
- ./dump:/dump
|
||||||
|
- ./data:/data/db
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
musictopus:
|
musictopus:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
Loading…
Reference in a new issue