-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.unit.yml
63 lines (60 loc) · 1.63 KB
/
docker-compose.unit.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
version: '3.7'
services:
rz:
build:
context: .
dockerfile: docker/unit/Dockerfile
container_name: rz
volumes:
- ./docker/unit/postgresql.conf:/srv/postgres/postgresql.conf:ro
- ./docker/unit/pg_hba.conf:/srv/postgres/pg_hba.conf:ro
- db_data:/srv/postgresql
- ./app:/srv/app
- ./config:/srv/config
- ./db:/srv/db
- ./lib:/srv/lib
- ./spec:/srv/spec
- ./Gemfile:/srv/Gemfile
ports:
- "3000:3000"
- "5432"
# ****************
# Tools
# ****************
# All the containers described below here are not for production use
# but to assist development
# PGAdmin
# Use this to inspect your database and test queries
pgadmin:
image: dpage/pgadmin4:4
ports:
- 5050:80
environment:
PGADMIN_DEFAULT_EMAIL: admin@example.com
PGADMIN_DEFAULT_PASSWORD: admin
entrypoint: /entrypoint.sh
volumes:
- type: bind
source: ./docker/unit/pgadmin_servers.json
target: /pgadmin4/servers.json
read_only: true
depends_on:
- rz
# Selenium Chrome instance
# This is used to perform browser testing and also to ensure that
# secure parts of the webapp are not inadvertantly open to the public
# See the browser specs in /spec/browser.
# If you have a VNC client, simply login to port 5900 with the
# password: secret
chrome:
image: selenium/standalone-chrome-debug
container_name: chrome
ports:
- "5900:5900"
healthcheck:
test: ["CMD", "curl", "-v", "http://localhost:4444/wd/hub/status"]
interval: 10s
timeout: 5s
retries: 3
volumes:
db_data: