forked from citusdata/activerecord-multi-tenant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
32 lines (31 loc) · 1.14 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: '2.1'
services:
master:
container_name: "${COMPOSE_PROJECT_NAME:-citus}_master"
image: 'citusdata/citus:${CITUS_VERSION:-11.2}'
ports: [ '5600:5432' ]
labels: [ 'com.citusdata.role=Master' ]
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
command: -c fsync=off -c full_page_writes=off
worker1:
image: 'citusdata/citus:${CITUS_VERSION:-11.2}'
ports: [ '5601:5432' ]
labels: [ 'com.citusdata.role=Worker' ]
depends_on: { manager: { condition: service_healthy } }
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
command: -c fsync=off -c full_page_writes=off
worker2:
image: 'citusdata/citus:${CITUS_VERSION:-11.2}'
ports: [ '5602:5432' ]
labels: [ 'com.citusdata.role=Worker' ]
depends_on: { manager: { condition: service_healthy } }
environment:
- POSTGRES_HOST_AUTH_METHOD=trust
command: -c fsync=off -c full_page_writes=off
manager:
container_name: "${COMPOSE_PROJECT_NAME:-citus}_manager"
image: 'citusdata/membership-manager:0.2.0'
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
depends_on: { master: { condition: service_healthy } }