42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
services:
|
|
rg-website-cms:
|
|
build: .
|
|
container_name: rg-website-cms
|
|
ports:
|
|
- "${PORT}:1337"
|
|
environment:
|
|
DATABASE_CLIENT: ${DATABASE_CLIENT}
|
|
DATABASE_HOST: ${DATABASE_HOST}
|
|
DATABASE_PORT: ${DATABASE_PORT}
|
|
DATABASE_NAME: ${DATABASE_NAME}
|
|
DATABASE_USERNAME: ${DATABASE_USERNAME}
|
|
DATABASE_PASSWORD: ${DATABASE_PASSWORD}
|
|
DATABASE_SSL: ${DATABASE_SSL}
|
|
NODE_ENV: ${NODE_ENV}
|
|
APP_KEYS: ${APP_KEYS}
|
|
API_TOKEN_SALT: ${API_TOKEN_SALT}
|
|
ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET}
|
|
TRANSFER_TOKEN_SALT: ${TRANSFER_TOKEN_SALT}
|
|
JWT_SECRET: ${JWT_SECRET}
|
|
CORS_ORIGIN: ${CORS_ORIGIN}
|
|
volumes:
|
|
- strapi_uploads:/app/public/uploads
|
|
depends_on:
|
|
- postgres
|
|
|
|
postgres:
|
|
image: postgres:15-alpine
|
|
container_name: rg-website-cms-postgres
|
|
environment:
|
|
POSTGRES_DB: strapi
|
|
POSTGRES_USER: strapi
|
|
POSTGRES_PASSWORD: strapi
|
|
volumes:
|
|
- postgres_data:/var/lib/postgresql/data
|
|
ports:
|
|
- 5432:5432
|
|
|
|
volumes:
|
|
strapi_uploads:
|
|
postgres_data:
|