-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose.yml
90 lines (84 loc) · 2.1 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
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
version: '3'
services:
mysql:
container_name: vault_db
image: mysql:5.7
volumes:
- vol_mysql:/var/lib/mysql
ports:
- 3307:3306
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 1
networks:
vault_net:
ipv4_address: 10.5.0.5
keystone:
container_name: vault_keystone
image: stormers/vault-keystone:1.0.0
volumes:
- vol_keystone:/etc/keystone
depends_on:
- mysql
ports:
- 35357:35357
- 5000:5000
networks:
vault_net:
ipv4_address: 10.5.0.4
swift:
container_name: vault_swift
image: stormers/vault-swift:1.0.0
volumes:
- vol_swift:/swift/nodes
depends_on:
- keystone
links:
- keystone
ports:
- 8080:8080
networks:
vault_net:
ipv4_address: 10.5.0.3
extra_hosts:
- 'localhost:10.5.0.4'
vault:
container_name: vault_app
build:
context: ./
dockerfile: helpers/docker/vault/Dockerfile
volumes:
- .:/home/app/vault
depends_on:
- mysql
- keystone
- swift
links:
- mysql
- keystone
- swift
command: ['./helpers/docker/vault/start.sh']
ports:
- 8000:8000
environment:
VAULT_MYSQL_HOST: vault_db
VAULT_KEYSTONE_URL: http://vault_keystone:5000/v3
VAULT_KEYSTONE_PROJECT: Vault
VAULT_KEYSTONE_USERNAME: u_vault
VAULT_KEYSTONE_PASSWORD: u_vault
VAULT_ENVIRON: docker
networks:
vault_net:
ipv4_address: 10.5.0.2
extra_hosts:
- 'localhost:10.5.0.4'
- 'localhost:10.5.0.3'
volumes:
vol_mysql:
vol_keystone:
vol_swift:
networks:
vault_net:
driver: bridge
ipam:
config:
- subnet: 10.5.0.0/16