Skip to content

Instantly share code, notes, and snippets.

@iampoul
Created February 6, 2022 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iampoul/af753827c2638ae0035472d3fddce92e to your computer and use it in GitHub Desktop.
Save iampoul/af753827c2638ae0035472d3fddce92e to your computer and use it in GitHub Desktop.
version: "3"
services:
strapi:
container_name: strapi
image: strapi/strapi
environment:
- DATABASE_CLIENT=postgres
- DATABASE_HOST=db
- DATABASE_PORT=5432
- DATABASE_NAME=strapi
- DATABASE_USERNAME=strapi
- DATABASE_PASSWORD=strapi
ports:
- 1337:1337
volumes:
- ./app:/srv/app
depends_on:
- db
db:
container_name: postgres
image: postgres
restart: always
volumes:
- ./db:/var/lib/postgresql/data
ports:
- 5432:5432
environment:
POSTGRES_USER: strapi
POSTGRES_PASSWORD: strapi
POSTGRES_DB: strapi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment