32 lines
735 B
YAML
32 lines
735 B
YAML
version: "3"
|
|
|
|
services:
|
|
strapi:
|
|
image: strapi
|
|
container_name: strapi
|
|
environment:
|
|
DATABASE_CLIENT: postgres
|
|
DATABASE_NAME: strapi
|
|
DATABASE_HOST: postgres
|
|
DATABASE_PORT: 5432
|
|
DATABASE_USERNAME: strapi
|
|
DATABASE_PASSWORD: strapi
|
|
JWT_SECRET: qERUvi0qVkRDmDPh
|
|
ADMIN_JWT_SECRET: d9cqEottMoABxcmp
|
|
APP_KEYS: szkCL5n0Mwyqo6ef
|
|
API_TOKEN_SALT: pMJRhpA4J+zUHzJO
|
|
ports:
|
|
- "1337:1337"
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres
|
|
container_name: strapi-postgres
|
|
environment:
|
|
POSTGRES_DB: strapi
|
|
POSTGRES_USER: strapi
|
|
POSTGRES_PASSWORD: strapi
|
|
volumes:
|
|
- /var/dockers/strapi/postgres:/var/lib/postgresql/data
|