forked from publify/publify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 970 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (37 loc) · 970 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
31
32
33
34
35
36
37
volumes:
postgres: null
services:
publify:
build: .
environment:
DATABASE_URL: postgres://publify:publify@postgres/publify
SECRET_KEY_BASE: ${SECRET_KEY_BASE}
RAILS_SERVE_STATIC_FILES: true
RAILS_LOG_TO_STDOUT: true
ports:
- "3000:3000"
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: [ "CMD-SHELL", "wget --no-verbose --tries=1 -S --spider 127.0.0.1:3000 || exit 1" ]
interval: 5s
timeout: 10s
retries: 5
start_interval: 5s
postgres:
image: postgres
restart: unless-stopped
environment:
PGDATA: /var/lib/postgresql/data/pgdata
POSTGRES_PASSWORD: publify
POSTGRES_USER: publify
POSTGRES_DB: publify
volumes:
- postgres:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U publify -d publify" ]
interval: 5s
timeout: 10s
retries: 5
start_interval: 5s