forked from 18F/culper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
104 lines (96 loc) · 2.04 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
version: '2'
services:
db:
image: postgres
expose:
- '5432'
networks:
- private
# Within the docker world this is the main entrypoint in to
# this web application. This was done in order to have a
# combination of:
# - development REPL
# - automated unit tests
# - spec testing
#
# Caddy will do the following:
# - serve compiled static assets
# - proxy /api requests to the backend API
web:
image: abiosoft/caddy
volumes:
- ./dist:/srv
- ./api/Caddyfile:/etc/Caddyfile
ports:
- '8080:2015'
networks:
- private
depends_on:
- api
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
env_file:
- .env
volumes:
- .:/usr/src/app
- /usr/src/app/node_modules
command: ./build-frontend.sh
networks:
- private
api:
build:
context: .
dockerfile: Dockerfile.api
env_file:
- .env
working_dir: /go/src/github.com/18F/e-QIP-prototype/api
command: ./run.sh
volumes:
- .:/go/src/github.com/18F/e-QIP-prototype
expose:
- '3000'
environment:
DATABASE_USER: postgres
DATABASE_NAME: postgres
DATABASE_HOST: db:5432
networks:
- private
depends_on:
- db
hub:
image: selenium/hub:latest
expose:
- '4444'
networks:
- private
# Selenium nodes currently don't support docker networks.
# To get around this we emulate what `--link` would create for
# environment variables.
#
# Reference: https://github.com/SeleniumHQ/docker-selenium/issues/133
chrome:
image: selenium/node-chrome:latest
environment:
HUB_PORT_4444_TCP_ADDR: hub
HUB_PORT_4444_TCP_PORT: 4444
networks:
- private
depends_on:
- hub
nightwatch:
build:
context: .
dockerfile: Dockerfile.nightwatch
command: [npm, run, docker]
volumes:
- ./specs:/usr/src/app
networks:
- private
depends_on:
- chrome
- web
networks:
private:
driver: bridge