forked from llebj/orleans-on-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.postgres.yaml
69 lines (65 loc) · 1.69 KB
/
compose.postgres.yaml
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: ooc-adonet
services:
client:
image: orleans-client:postgres
pull_policy: build
build:
context: .
dockerfile: ./Client/Dockerfile
args:
- Configuration=Release
- PreRestoreStage=postgres
- AdoNetProviderPackageVersion=${NpgsqlVersion}
environment:
- Client__ClusteringProvider=adonet
- AdoNetProvider__Invariant=Npgsql
- AdoNetProvider__ConnectionString=${ConnectionString}
depends_on:
silo:
condition: service_started
postgres:
condition: service_healthy
restart: true
stdin_open: true
tty: true
deploy:
replicas: 2
silo:
image: orleans-silo:postgres
pull_policy: build
build:
context: .
dockerfile: ./Silo/Dockerfile
args:
- Configuration=Release
- PreRestoreStage=postgres
- AdoNetProviderPackageVersion=${NpgsqlVersion}
environment:
- Silo__ClusteringProvider=adonet
- AdoNetProvider__Invariant=Npgsql
- AdoNetProvider__ConnectionString=${ConnectionString}
depends_on:
postgres:
condition: service_healthy
restart: true
postgres:
image: orleans-postgres
pull_policy: build
build:
context: ./Storage/PostgreSQL
dockerfile: ./Dockerfile
args:
- PostgresVersion=${PostgresVersion}
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres_password
secrets:
- postgres_password
user: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready -d orleans_on_containers || exit 1"]
interval: 10s
timeout: 5s
retries: 3
secrets:
postgres_password:
file: ../../secrets/postgres_password.txt