36 lines
749 B
YAML
36 lines
749 B
YAML
services:
|
|
couchdb:
|
|
image: hereconnect/service-couchdb:${COUCHDB_TAG:-latest}
|
|
|
|
ports:
|
|
- "127.0.0.1:15984:5984"
|
|
|
|
volumes:
|
|
- couchdb_data:/opt/couchdb/data
|
|
|
|
environment:
|
|
- COUCHDB_USER=${COUCHDB_USER}
|
|
- COUCHDB_PASSWORD=${COUCHDB_PASSWORD}
|
|
|
|
restart: unless-stopped
|
|
|
|
logging:
|
|
driver: "json-file"
|
|
options:
|
|
max-size: "100m"
|
|
max-file: "10"
|
|
|
|
db-migrations:
|
|
image: hereconnect/service-db-migrations:${DB_MIGRATIONS_TAG:-latest}
|
|
volumes:
|
|
- db_migrations_data:/opt/migrations/data
|
|
environment:
|
|
- API_URL=http://${COUCHDB_USER}:${COUCHDB_PASSWORD}@couchdb:5984
|
|
depends_on:
|
|
- couchdb
|
|
restart: no
|
|
|
|
volumes:
|
|
couchdb_data:
|
|
db_migrations_data:
|