mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 14:02:48 +00:00
41 lines
894 B
YAML
41 lines
894 B
YAML
version: '2.1'
|
|
services:
|
|
database:
|
|
image: registry.gitlab.com/openstapps/database:master
|
|
volumes:
|
|
- ./database:/usr/share/elasticsearch/data
|
|
expose:
|
|
- "9200"
|
|
restart: unless-stopped
|
|
healthcheck:
|
|
test: ["CMD", "nc", "-zv", "localhost", "9200"]
|
|
interval: 5s
|
|
timeout: 10s
|
|
retries: 20
|
|
|
|
backend:
|
|
image: registry.gitlab.com/openstapps/backend/default:master
|
|
environment:
|
|
ES_PORT_9200_TCP_ADDR: database
|
|
ES_PORT_9200_TCP_PORT: 9200
|
|
NODE_CONFIG_ENV: "elasticsearch"
|
|
ALLOW_NO_TRANSPORT: "true"
|
|
expose:
|
|
- 3000
|
|
ports:
|
|
- 3000:3000
|
|
links:
|
|
- "database"
|
|
labels:
|
|
- stapps.version=1.0.0
|
|
restart: unless-stopped
|
|
depends_on:
|
|
database:
|
|
condition: service_healthy
|
|
|
|
api:
|
|
image: registry.gitlab.com/openstapps/api/copy:v0.0.3
|
|
links:
|
|
- "backend"
|
|
|