Skip to content

Commit 799096c

Browse files
committed
use container-name in docker-compose
1 parent 878b10b commit 799096c

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/docs-local.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ jobs:
137137
run: touch ./deploy/.env
138138
- name: Fill .env file for deployment
139139
run: |
140+
echo CONTAINER_NAME=${{ secrets.CONTAINER_NAME || 'safeLearn' }} >> ./deploy/.env
140141
echo WEBSERVER_PORT=${{ secrets.WEBSERVER_PORT }} >> ./deploy/.env
141142
echo INTERNAL_PORT=${{ secrets.PORT }} >> ./deploy/.env
142143
echo DOCKER_HUB_USER=${{ secrets.DOCKER_HUB_USER }} >> ./deploy/.env

deploy/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ services:
22

33
safeLearn:
44
image: ${DOCKER_HUB_USER}/${DOCKER_IMAGE_NAME}:latest
5-
container_name: safeLearn
5+
container_name: ${CONTAINER_NAME}
66
restart: unless-stopped
77
ports:
88
- "${WEBSERVER_PORT}:${INTERNAL_PORT}"

0 commit comments

Comments
 (0)