Skip to content

Commit fb40ae0

Browse files
committed
feat: add support for environment variable configuration in Docker setup
1 parent 29c0fd5 commit fb40ae0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.env.docker

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
# related docker-compose.yml configurations
77
#
88

9+
# This can be used to enabled or disable certain features based on the environment.
10+
# Note: the env variable name inside the container will be `ENVIRONMENT`
11+
# Possible values: development, staging, production
12+
# DOCKER_ENVIRONMENT=production
913

1014
# DOCKER_WORDPRESS_URL=http://localhost
1115
# DOCKER_WORDPRESS_TITLE=ACoreCMS

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ services:
5757
- .env.docker
5858
environment:
5959
DOCKER_CONTAINER: 1
60+
ENVIRONMENT: ${DOCKER_ENVIRONMENT:-production}
6061
WORDPRESS_URL: ${DOCKER_WORDPRESS_URL:-http://localhost}
6162
WORDPRESS_TITLE: ${DOCKER_WORDPRESS_TITLE:-ACoreCMS}
6263
WORDPRESS_MULTISITE: ${DOCKER_WORDPRESS_MULTISITE:-true}

0 commit comments

Comments
 (0)