Docker: add services names to .env

This commit is contained in:
Chika 2022-11-28 19:49:14 +03:00
parent 9f51001a50
commit f1638c9178
2 changed files with 4 additions and 2 deletions

2
.env
View File

@ -1,4 +1,6 @@
NETWORK_NAME=
WEB_APP_NAME=
API_NAME=
WEB_APP_BASE_PATH=
WEB_APP_TITLE=

View File

@ -2,7 +2,7 @@ version: '3'
services:
web:
container_name: web
container_name: ${WEB_APP_NAME}
build:
context: .
dockerfile: ./apps/web/Dockerfile
@ -12,7 +12,7 @@ services:
- APP_DESCRIPTION=${WEB_APP_DESCRIPTION}
restart: always
api:
container_name: api
container_name: ${API_NAME}
build:
context: .
dockerfile: ./apps/api/Dockerfile