-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
114 lines (109 loc) · 2.21 KB
/
docker-compose.yml
File metadata and controls
114 lines (109 loc) · 2.21 KB
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
services:
app: &services-app
build:
context: .
target: development
depends_on:
init:
condition: service_completed_successfully
required: false
worker:
condition: service_healthy
required: false
environment:
- PUMA_DELAYED_STOP_DRAIN_SECONDS=1
healthcheck:
test: curl -sf http://localhost:3000/health/default
interval: 15s
timeout: 1s
retries: 3
start_period: 30s
init: true
networks:
default:
aliases:
- app.test
volumes:
- ./:/opt/app
ports:
- 3000:3000
restart: always
stop_grace_period: 30s
stop_signal: QUIT
worker:
<<: *services-app
command: good_job start
depends_on:
init:
condition: service_completed_successfully
required: false
environment:
- GOOD_JOB_PROBE_PORT=7001
healthcheck:
test: curl -sf http://localhost:7001/status/started
interval: 1m
timeout: 5s
retries: 5
start_period: 30s
ports: []
db:
environment:
POSTGRES_PASSWORD: root
POSTGRES_USER: root
healthcheck:
test: pg_isready -U root
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
image: postgres:16
networks:
default:
aliases:
- db.test
restart: always
ports:
- 5432:5432
volumes:
- ./:/build:rw
init:
<<: *services-app
command:
- sh
- -c
- |
set -e
rails assets:precompile db:await db:setup
RAILS_ENV=test rails db:setup
depends_on:
db:
condition: service_healthy
required: false
healthcheck:
disable: true
ports: []
restart: on-failure:5
selenium:
image: selenium/standalone-chromium
networks:
default:
aliases:
- selenium.test
ports:
- 4444:4444
- 7900:7900
shm_size: 2gb
volumes:
- ./:/build:rw
dbeaver:
image: dbeaver/cloudbeaver:latest
container_name: dbeaver
depends_on:
db:
condition: service_healthy
required: false
restart: always
ports:
- '8080:8978'
volumes:
- ./:/build:rw