This repository has been archived by the owner on May 19, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathdocker-compose.yml
147 lines (146 loc) · 4.15 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: '2.1'
services:
app:
extends: backend
working_dir: /go/src/github.com/18F/cg-dashboard
entrypoint: ./devtools/golang/install_deps_then "go run server.go"
depends_on:
mail:
condition: service_started
frontend:
condition: service_healthy
ports:
- "8002:8002"
networks:
- servicesNetwork
environment:
CONSOLE_API_URL: https://api.local.pcfdev.io
CONSOLE_HOSTNAME: http://localhost:8002
CONSOLE_LOGIN_URL: https://uaa.local.pcfdev.io
CONSOLE_LOG_URL: https://loggregator.local.pcfdev.io
CONSOLE_UAA_URL: https://uaa.local.pcfdev.io
LOCAL_CF: "1"
PORT: 8002
VCAP_APPLICATION: '{}'
VCAP_SERVICES: >
{
"user-provided": [{
"credentials": {
"CONSOLE_CLIENT_ID": "dashboard-local",
"CONSOLE_CLIENT_SECRET": "notarealsecret",
"CSRF_KEY": "00112233445566778899aabbccddeeff",
"SESSION_AUTHENTICATION_KEY": "00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff",
"SESSION_ENCRYPTION_KEY": "00112233445566778899aabbccddeeff00112233445566778899aabbccddeeff",
"SMTP_FROM": "[email protected]",
"SMTP_HOST": "smtp.fake.com",
"SMTP_PASS": "",
"SMTP_PORT": "25",
"SMTP_USER": ""
},
"name": "dashboard-ups",
"label": "user-provided"
}]
}
mail:
image: tophfr/mailcatcher
ports:
- 8025:80 # for the web UI
networks:
servicesNetwork:
aliases:
- smtp.fake.com
frontend_dev_tools:
build:
context: .
dockerfile: ./devtools/node/Dockerfile
working_dir: /cg-dashboard
# override the current entrypoint from the base image.
entrypoint: /cg-dashboard/devtools/node/install_deps_then
volumes:
- global-node-modules:/usr/local/lib/node_modules
- npm-cache:/root/.npm
- node-modules:/cg-dashboard/node_modules
- .:/cg-dashboard
#- ./node_modules:/cg-dashboard/node_modules
- cg-style-node-modules:/cg-style/node_modules
- ${CG_STYLE_PATH-../cg-style}:/cg-style
- frontend-home:/headless
environment:
- CG_DASHBOARD_DIR=/cg-dashboard
- CG_STYLE_DIR=/cg-style
frontend:
extends:
service: frontend_dev_tools
command: 'sleep 100d'
ports:
- "5901:5901"
- "6901:6901"
healthcheck:
test: ["CMD", "wget", "http://localhost:6901"]
interval: 1m00s
timeout: 10s
retries: 20
environment:
- START_VNC=1
depends_on:
frontend_cleanup:
condition: service_started
watch:
extends:
service: frontend_dev_tools
command: 'npm run watch'
working_dir: /cg-dashboard
depends_on:
frontend:
condition: service_healthy
watch_cg_style:
extends:
service: frontend_dev_tools
working_dir: /cg-style
command: 'npm run watch'
depends_on:
frontend:
condition: service_healthy
environment:
- CG_STYLE=1
frontend_cleanup:
extends:
service: frontend_dev_tools
working_dir: /cg-dashboard
command: 'node devtools/node/cleanup.js'
backend:
image: golang:1.9.2
environment:
- GOPATH=/go
- DOCKER_IN_DOCKER=1
volumes:
- .:/go/src/github.com/18F/cg-dashboard
- go-bins:/go/bin/
- go-dep-tool-src:/go/src/github.com/golang
# needed for running go tests that use https://github.com/ory/dockertest
- /var/run/docker.sock:/var/run/docker.sock
working_dir: /go/src/github.com/18F/cg-dashboard
entrypoint: ./devtools/golang/install_deps_then
networks:
- servicesTestNetwork
frontend_testing_server:
extends:
service: frontend_dev_tools
command: 'npm run testing-server'
working_dir: /cg-dashboard
ports:
- "8001:8001"
volumes:
node-modules:
cg-style-node-modules:
npm-cache:
global-node-modules:
go-bins:
go-dep-tool-src:
frontend-home:
networks:
servicesNetwork:
driver: bridge
# needed for running go tests that use https://github.com/ory/dockertest
servicesTestNetwork:
driver: bridge