From 570f3d7f614b4de99ab0b58af7966b5ebcd5df14 Mon Sep 17 00:00:00 2001 From: kev Date: Tue, 27 Apr 2021 16:47:02 +0800 Subject: [PATCH] add strapi --- README.md | 1 + strapi/README.md | 2 ++ strapi/docker-compose.yml | 30 ++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 strapi/README.md create mode 100644 strapi/docker-compose.yml diff --git a/README.md b/README.md index 3066640..1fce05a 100644 --- a/README.md +++ b/README.md @@ -393,6 +393,7 @@ A collection of delicious docker recipes. - [x] teamatldocker - [x] confluence - [x] jira +- [x] strapi/strapi - [x] amancevice/superset - [x] v2ray/official :cn: - [x] traefik diff --git a/strapi/README.md b/strapi/README.md new file mode 100644 index 0000000..7d44d38 --- /dev/null +++ b/strapi/README.md @@ -0,0 +1,2 @@ +strapi +====== diff --git a/strapi/docker-compose.yml b/strapi/docker-compose.yml new file mode 100644 index 0000000..8e5a369 --- /dev/null +++ b/strapi/docker-compose.yml @@ -0,0 +1,30 @@ +version: "3.8" + +services: + + strapi: + image: strapi/strapi:3.6.0-alpine + ports: + - "1337:1337" + volumes: + - ./data/strapi:/srv/app + environment: + - DATABASE_CLIENT=postgres + - DATABASE_HOST=postgres + - DATABASE_PORT=5432 + - DATABASE_USERNAME=strapi + - DATABASE_PASSWORD=strapi + - DATABASE_NAME=strapi + restart: unless-stopped + + postgres: + image: postgres:13.2-alpine + ports: + - "5432:5432" + volumes: + - ./data/postgres:/var/lib/postgresql/data + environment: + - POSTGRES_USER=strapi + - POSTGRES_PASSWORD=strapi + - POSTGRES_DB=strapi + restart: unless-stopped