mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
Update deployment (#58)
* Update ci_cd.yml Remove deployment scripts, moved to authorized_keys instead. * Update docker-compose.prod.yml to always restart
This commit is contained in:
1 parent
4c2f3f5397
commit
10e9d89349
2 files changed
+3
-5
No files matched your search
@@ -119,7 +119,3 @@ jobs:
|
||||
port: ${{ secrets.SERVER_PORT }}
|
||||
username: ${{ secrets.SERVER_USER }}
|
||||
key: ${{ secrets.SERVER_SSH_KEY }}
|
||||
script: |
|
||||
cd ${{ secrets.SERVER_PATH }}
|
||||
docker compose -f docker-compose.prod.yml pull
|
||||
docker compose -f docker-compose.prod.yml up -d
|
||||
@@ -4,6 +4,7 @@ services:
|
||||
image: lancatlin/linux-odyssey:app
|
||||
depends_on:
|
||||
- backend
|
||||
restart: always
|
||||
build:
|
||||
context: .
|
||||
dockerfile: app/Dockerfile
|
||||
@@ -16,7 +17,7 @@ services:
|
||||
image: lancatlin/linux-odyssey:backend
|
||||
depends_on:
|
||||
- db
|
||||
restart: on-failure
|
||||
restart: always
|
||||
build:
|
||||
context: .
|
||||
dockerfile: server/Dockerfile
|
||||
@@ -40,6 +41,7 @@ services:
|
||||
context: .
|
||||
dockerfile: packages/analytics/Dockerfile
|
||||
target: prod
|
||||
restart: always
|
||||
depends_on:
|
||||
- db
|
||||
networks:
|
||||
|
||||
Reference in new issue
Block a user