Created
May 13, 2021 09:41
-
-
Save Adarshreddyash/743e8a051b9c4c5f8ba39cb5ed276e38 to your computer and use it in GitHub Desktop.
strapi docker compose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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