| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- version: '3.2'
- services:
- couchdb:
- image: couchdb
- environment:
- - COUCHDB_PASSWORD=${COUCHDB_PASSWORD}
- - COUCHDB_USER=${COUCHDB_USER}
- expose:
- - '5984'
- ports:
- - '5984:5984'
- volumes:
- - ${PWD}/couchdb/data:/opt/couchdb/data
- - ${PWD}/couchdb/config:/opt/couchdb/etc/local.d
- app:
- image: "node:lts-alpine"
- working_dir: /app
- restart: unless-stopped
- depends_on:
- - couchdb
- environment:
- - NODE_ENV=production
- - COUCHDB_PASSWORD=${COUCHDB_PASSWORD}
- - COUCHDB_USER=${COUCHDB_USER}
- - COUCHDB_PROTOCOL=${COUCHDB_PROTOCOL}
- - COUCHDB_HOST=${COUCHDB_HOST}
- - COUCHDB_PORT=${COUCHDB_PORT}
- - APP_PORT=${APP_PORT}
- - APP_HOST=${APP_HOST}
- - JWT_SECRET=${JWT_SECRET}
- volumes:
- - ${PWD}:/app
- ports:
- - "8080:8080"
- expose:
- - "8080"
- command: "npm start"
|