-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstack.yml
More file actions
30 lines (29 loc) · 774 Bytes
/
Copy pathstack.yml
File metadata and controls
30 lines (29 loc) · 774 Bytes
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
version: '3'
services:
web:
image: fmer/docker-rails-example:latest
environment:
DATABASE_URL: mysql2://root:example@mysql/example_application
REDIS_URL: redis://redis:6379/1
SECRET_KEY_BASE: >
f1e691c4fb158fcc8fca8256685cb9b8de22b1922e582ff563da88a2789e29706968f042
f7959dfa5fdff9415b8fefb70fc7000ee3c640a7c8930612709f7174
ports:
- 3000:3000
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"]
interval: 30s
timeout: 30s
retries: 3
deploy:
restart_policy:
condition: on-failure
delay: 5s
max_attempts: 3
window: 120s
mysql:
image: mysql:8
environment:
MYSQL_ROOT_PASSWORD: example
redis:
image: redis:4