-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
22 lines (22 loc) · 971 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: '3'
services:
strapi:
build: .
container_name: strapi_dockerize
environment:
# Using Variable Subtitution to obtain environment variables. For more : https://docs.docker.com/compose/compose-file/compose-file-v3/#variable-substitution.
NODE_ENV: ${NODE_ENV:-development}
# == MongoDB Atlas configuration ==
DATABASE_CLIENT: mongo
DATABASE_HOST: ${DATABASE_HOST:-127.0.0.1}
DATABASE_SRV: ${DATABASE_SRV:-true}
DATABASE_PORT: ${DATABASE_PORT:-27017}
DATABASE_NAME: ${DATABASE_NAME:-myStrapiApp}
DATABASE_USERNAME: ${DATABASE_USERNAME:-admin}
DATABASE_PASSWORD: ${DATABASE_PASSWORD:-admin123}
DATABASE_SSL: ${DATABASE_SSL:-false}
# AUTHENTICATION_DATABASE: admin
CORS_ORIGIN: ${CORS_ORIGIN}
ADMIN_JWT_SECRET: ${ADMIN_JWT_SECRET:-ErhxCk10YqNCImwodl5Ml/Maqnw46oTyLjr+9Na4bjmJSLVWnCS90BJRAAkLsspj98caylAJgikBO9ZS0jEiOQ==}
ports:
- '${PORT:-1337}:${PORT:-1337}'