You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-07-15 01:14:25 +02:00
update strapi
This commit is contained in:
@ -3,21 +3,27 @@ version: "3.8"
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
strapi:
|
strapi:
|
||||||
|
container_name: strapi
|
||||||
image: strapi/strapi:3.6.0-alpine
|
image: strapi/strapi:3.6.0-alpine
|
||||||
|
command: "strapi start"
|
||||||
ports:
|
ports:
|
||||||
- "1337:1337"
|
- "1337:1337"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/strapi:/srv/app
|
- ./data/strapi:/srv/app
|
||||||
environment:
|
environment:
|
||||||
|
- NODE_ENV=production
|
||||||
- DATABASE_CLIENT=postgres
|
- DATABASE_CLIENT=postgres
|
||||||
- DATABASE_HOST=postgres
|
- DATABASE_HOST=postgres
|
||||||
- DATABASE_PORT=5432
|
- DATABASE_PORT=5432
|
||||||
- DATABASE_USERNAME=strapi
|
- DATABASE_USERNAME=strapi
|
||||||
- DATABASE_PASSWORD=strapi
|
- DATABASE_PASSWORD=strapi
|
||||||
- DATABASE_NAME=strapi
|
- DATABASE_NAME=strapi
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
container_name: postgres
|
||||||
image: postgres:13.2-alpine
|
image: postgres:13.2-alpine
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
Reference in New Issue
Block a user