-
Notifications
You must be signed in to change notification settings - Fork 4
/
test.postgresql.yml
71 lines (71 loc) · 1.65 KB
/
test.postgresql.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
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
70
71
version: "2"
services:
server:
build:
context: .
dockerfile: server.dev.Dockerfile
networks:
mdb:
sig:
srv:
aliases:
- apostille
ports:
- "8080"
- "4443:4443"
entrypoint: /usr/bin/env sh
command: -c "migrations/migrate.sh && apostille -config=fixtures/config.postgres.json"
environment:
QUAY_ROOT: quay.dev/*
MIGRATIONS_PATH: migrations/postgresql
DB_URL: postgres://server:12345@postgresql:5432/apostille?sslmode=disable
ROOT_DB_URL: postgres://server_root:54321@postgresql:5432/apostille_root?sslmode=disable
depends_on:
- notary_signer
- postgresql
postgresql:
build:
context: .
dockerfile: postgres.Dockerfile
networks:
- mdb
- sig
volumes:
- apostille_data:/var/lib/postgresql
ports:
- "5432:5432"
client:
build:
context: .
dockerfile: client.Dockerfile
command: python testclient.py
networks:
- mdb
- srv
notary_signer:
build:
context: .
dockerfile: signer.Dockerfile
networks:
mdb:
sig:
aliases:
- notarysigner
entrypoint: /usr/bin/env sh
environment:
GOPATH: /go/src
MIGRATIONS_PATH: /go/src/github.com/theupdateframework/notary/migrations/signer/postgresql
DB_URL: postgres://signer@postgresql:5432/notarysigner?sslmode=disable
command: -c "/migrate.sh && notary-signer -config=/signer-config.postgres.json"
depends_on:
- postgresql
volumes:
apostille_data:
external: false
networks:
mdb:
external: false
srv:
external: false
sig:
external: false