|
|
@ -1,13 +1,11 @@
|
|
|
|
version: '3'
|
|
|
|
version: '3'
|
|
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
services:
|
|
|
|
redis:
|
|
|
|
mongodb:
|
|
|
|
image: redis:alpine
|
|
|
|
image: mongo:5.0
|
|
|
|
expose:
|
|
|
|
|
|
|
|
- 6379
|
|
|
|
|
|
|
|
restart: always
|
|
|
|
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
- REDIS_REPLICATION_MODE=master
|
|
|
|
- MONGO_INITDB_ROOT_USERNAME=spot2gether
|
|
|
|
|
|
|
|
- MONGO_INITDB_ROOT_PASSWORD=spot2gether
|
|
|
|
|
|
|
|
|
|
|
|
backend:
|
|
|
|
backend:
|
|
|
|
image: node:alpine
|
|
|
|
image: node:alpine
|
|
|
@ -22,9 +20,9 @@ services:
|
|
|
|
- NODE_ENV=production
|
|
|
|
- NODE_ENV=production
|
|
|
|
command: sh -c 'npm i && nodejs index.mjs'
|
|
|
|
command: sh -c 'npm i && nodejs index.mjs'
|
|
|
|
links:
|
|
|
|
links:
|
|
|
|
- redis
|
|
|
|
- mongodb
|
|
|
|
depends_on:
|
|
|
|
depends_on:
|
|
|
|
- redis
|
|
|
|
- mongodb
|
|
|
|
|
|
|
|
|
|
|
|
frontend:
|
|
|
|
frontend:
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|