Skip to content

Commit 5282248

Browse files
authored
Merge pull request coollabsio#3685 from statickidz/add-strapi-template
Add Strapi template
2 parents 14c9f25 + d70faea commit 5282248

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

public/svgs/strapi.svg

Lines changed: 8 additions & 0 deletions
Loading

templates/compose/strapi.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# documentation: https://docs.strapi.io/
2+
# slogan: Open-source headless CMS to build powerful APIs with built-in content management.
3+
# tags: cms, headless, mysql, api
4+
# logo: svgs/strapi.svg
5+
# port: 1337
6+
7+
services:
8+
strapi:
9+
image: "elestio/strapi-development:latest"
10+
environment:
11+
- SERVICE_FQDN_STRAPI_1337
12+
- DATABASE_CLIENT=postgres
13+
- DATABASE_HOST=postgresql
14+
- DATABASE_PORT=5432
15+
- "DATABASE_NAME=${POSTGRESQL_DATABASE:-strapi}"
16+
- DATABASE_USERNAME=$SERVICE_USER_POSTGRESQL
17+
- DATABASE_PASSWORD=$SERVICE_PASSWORD_POSTGRESQL
18+
- JWT_SECRET=$SERVICE_BASE64_64_SECRET
19+
- ADMIN_JWT_SECRET=$SERVICE_BASE64_64_SECRET
20+
- APP_KEYS=$SERVICE_BASE64_64_KEY
21+
volumes:
22+
- "strapi-config:/opt/app/config"
23+
- "strapi-src:/opt/app/src"
24+
- "strapi-uploads:/opt/app/public/uploads"
25+
healthcheck:
26+
test:
27+
- CMD
28+
- wget
29+
- "-q"
30+
- "--spider"
31+
- "http://127.0.0.1:1337/"
32+
interval: 5s
33+
timeout: 20s
34+
retries: 10
35+
depends_on:
36+
postgresql:
37+
condition: service_healthy
38+
postgresql:
39+
image: "elestio/postgres:latest"
40+
environment:
41+
- "POSTGRES_DB=${POSTGRESQL_DATABASE:-strapi}"
42+
- POSTGRES_USER=$SERVICE_USER_POSTGRESQL
43+
- POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRESQL
44+
- PGDATA=/var/lib/postgresql/data
45+
volumes:
46+
- "strapi-postgresql-data:/var/lib/postgresql/data"
47+
healthcheck:
48+
test:
49+
- CMD-SHELL
50+
- "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"
51+
interval: 5s
52+
timeout: 20s
53+
retries: 10

0 commit comments

Comments
 (0)