-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest.mysql.yml
65 lines (65 loc) · 1.52 KB
/
test.mysql.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
version: "2"
services:
server:
build:
context: .
dockerfile: server.dev.Dockerfile
networks:
mdb:
sig:
srv:
aliases:
- apostille
entrypoint: /usr/bin/env sh
command: -c "./migrations/migrate.sh && apostille -config=fixtures/config.mysql.json"
environment:
DB_URL: mysql://server:12345@tcp(mysql:3306)/apostille
ROOT_DB_URL: mysql://server_root:54321@tcp(mysql:3306)/apostille_root
depends_on:
- notary_signer
- mysql
mysql:
networks:
- mdb
- sig
build:
context: .
dockerfile: mysql.Dockerfile
environment:
- TERM=dumb
- MYSQL_ALLOW_EMPTY_PASSWORD="true"
command: mysqld --innodb_file_per_table
ports:
- "3306:3306"
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/mysql
DB_URL: mysql://signer@tcp(mysql:3306)/notarysigner
command: -c "/migrate.sh && notary-signer -config=/go/src/github.com/theupdateframework/notary/fixtures/signer-config.json"
depends_on:
- mysql
networks:
mdb:
external: false
srv:
external: false
sig:
external: false