-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (45 loc) · 1.5 KB
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (45 loc) · 1.5 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
# AutoSEO — Docker Compose (works as-is on Coolify: "Docker Compose" build pack).
# Only DOMAIN is configurable via .env; everything else is configured in the admin panel.
# Self-hosting without building from source? See deploy/docker-compose.yml — same shape, but pulls the
# prebuilt image from GHCR (no build step) and bundles a Caddy reverse proxy. Guide: docs/SELF_HOSTING.md.
services:
app:
build:
context: .
args:
SOURCE_COMMIT: ${SOURCE_COMMIT:-}
restart: unless-stopped
environment:
# Coolify: set the domain on this service (it also exposes SERVICE_FQDN_APP_3000).
- SERVICE_FQDN_APP_3000
- DOMAIN=${DOMAIN:-}
- DATABASE_URL=postgres://autoseo:${SERVICE_PASSWORD_POSTGRES:-autoseo-local-only}@postgres:5432/autoseo
- DATA_DIR=/data
volumes:
- autoseo-data:/data
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-fsS", "http://127.0.0.1:3000/api/health"]
interval: 30s
timeout: 5s
retries: 5
start_period: 60s
postgres:
image: postgres:17-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=autoseo
- POSTGRES_PASSWORD=${SERVICE_PASSWORD_POSTGRES:-autoseo-local-only}
- POSTGRES_DB=autoseo
volumes:
- autoseo-pg:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U autoseo -d autoseo"]
interval: 5s
timeout: 5s
retries: 20
volumes:
autoseo-data:
autoseo-pg: