Skip to content

Instantly share code, notes, and snippets.

@Adarshreddyash
Created May 13, 2021 09:41
Show Gist options
  • Save Adarshreddyash/743e8a051b9c4c5f8ba39cb5ed276e38 to your computer and use it in GitHub Desktop.
Save Adarshreddyash/743e8a051b9c4c5f8ba39cb5ed276e38 to your computer and use it in GitHub Desktop.
strapi docker compose
version: '3'
services:
strapi:
image: strapi/strapi
environment:
DATABASE_CLIENT: postgres
DATABASE_NAME: strapi
DATABASE_HOST: postgres
DATABASE_PORT: 5432
DATABASE_USERNAME: strapi
DATABASE_PASSWORD: strapi
volumes:
- ./app:/srv/app
ports:
- '1337:1337'
depends_on:
- postgres
postgres:
image: postgres
environment:
POSTGRES_DB: strapi
POSTGRES_USER: strapi
POSTGRES_PASSWORD: strapi
volumes:
- ./data:/var/lib/postgresql/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment