forked from jvanderhoof/Ansiblefest-2017
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 943 Bytes
/
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
version: '3'
services:
pg:
image: postgres:9.3
conjur:
image: cyberark/conjur
command: server -a cucumber -p 3000
environment:
CONJUR_APPLIANCE_URL: http://localhost:3000
DATABASE_URL: postgres://postgres@pg/postgres
CONJUR_DATA_KEY: "W0BuL8iTr/7QvtjIluJbrb5LDAnmXzmcpxkqihO3dXA="
ports:
- "3000:3000"
networks:
- default
links:
- pg
conjur_cli:
image: conjurinc/cli5
environment:
CONJUR_APPLIANCE_URL: http://conjur:3000
CONJUR_ACCOUNT: cucumber
CONJUR_AUTHN_LOGIN: admin
volumes:
- ./policy:/src/policy
links:
- conjur
myapp_staging:
build: ./test_app
entrypoint: sleep
command: infinity
ports:
- 4567
environment:
RACK_ENV: staging
myapp_production:
build: ./test_app
entrypoint: sleep
command: infinity
ports:
- 4567
environment:
RACK_ENV: production