Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Wcc723 committed Oct 4, 2023
1 parent 45db338 commit 1fa54eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/deploy-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,3 @@ jobs:
- name: Copy docker-compose.yml to remote server
run: |
ssh root@${{ secrets.HOST_NAME }} "docker-compose --env-file /root/.env -f /root/docker-compose.yml up -d"
- name: Deploy with Docker Compose
run: |
ssh root@${{secrets.HOST_NAME}} "docker-compose -f /root/docker-compose.yml up -d"
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
restart: on-failure

mongo: # 服務名稱
image: mongo:latest
image: mongo:latest # dokcer hub
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_ROOT_PASSWORD}
Expand Down

0 comments on commit 1fa54eb

Please sign in to comment.