Single part at the root, COMPOSE_FILE in .env
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
{%- set has_ports = 'api' in backend_services or database != 'none' or use_redis -%}
|
||||
services:{% if not has_ports %} {}{% endif %}
|
||||
{% if 'api' in backend_services %} api:
|
||||
ports:
|
||||
- "127.0.0.1:${API__PORT:-8080}:8080"
|
||||
{% endif %}{% if database == 'mongo' %} mongodb:
|
||||
ports:
|
||||
- "127.0.0.1:${DB__PORT:-27017}:${DB__PORT:-27017}"
|
||||
{% endif %}{% if database == 'postgres' %} postgres:
|
||||
ports:
|
||||
- "127.0.0.1:${DB__PORT:-5432}:5432"
|
||||
{% endif %}{% if use_redis %} redis:
|
||||
ports:
|
||||
- "127.0.0.1:${REDIS__PORT:-6379}:6379"
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user