-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.yml
58 lines (55 loc) · 1.41 KB
/
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
# Set up the Selenium container based on the Selenium official:
# https://github.com/SeleniumHQ/docker-selenium/blob/trunk/docker-compose-v3.yml
# And:
# https://medium.com/@retrorubies/chrome-as-a-service-for-rails-testing-b1a45e70fec1
services:
shell:
image: lenchoreyes/jade:rails-app-3.0-postgres-bullseye
stdin_open: true
tty: true
volumes:
- .:/app:cached
environment:
- SSH_AUTH_SOCK=/ssh-agent
- NODE_ENV=development
- BOOTSNAP_CACHE_DIR=/usr/local/bundle/_bootsnap
- WEB_CONCURRENCY=1
- HISTFILE=/app/.bash_history
- DATABASE_HOST=postgres
- SELENIUM_HOST=selenium
- SELENIUM_PORT=4444
- TEST_APP_HOST=shell
- TEST_APP_PORT=3001
ports:
- "3000:3000"
- "3001:3001"
command: /bin/bash
depends_on:
- postgres
postgres:
image: postgres:13-alpine
volumes:
- postgres:/var/lib/postgresql/data
environment:
- PSQL_HISTFILE=/root/log/.psql_history
# For production, these have to be settable
- POSTGRES_USER=pg
- POSTGRES_PASSWORD=pg
ports:
- 5432
healthcheck:
test: pg_isready -U pg -h 127.0.0.1
interval: 5s
selenium:
image: selenium/standalone-chrome:124.0
logging:
driver: none
stdin_open: true
tty: true
environment:
- LANG=en_CA.UTF-8
ports:
- '4444:4444'
- '5900:5900'
volumes:
postgres: