diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 24d99c0..9312229 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -33,10 +33,3 @@ jobs: export DB_PASSWORD=${{ secrets.DB_PASSWORD }} export DOCKER_HOST=ssh://deploytest@zenful.cloud docker-compose -f ./compose.prod.yaml up -d - - # - name: Copy over the docker compose file - # run: | - # scp -o StrictHostKeyChecking=no compose.prod.yaml deploytest@zenful.cloud:guestbook/compose.yaml - # - name: Deploy code via SSH - # run: | - # ssh -o StrictHostKeyChecking=no deploytest@zenful.cloud "cd guestbook && docker compose up -d" diff --git a/compose.prod.yaml b/compose.prod.yaml index 6b45dee..c3673b3 100644 --- a/compose.prod.yaml +++ b/compose.prod.yaml @@ -70,8 +70,8 @@ services: - db-data:/var/lib/postgresql/data environment: - POSTGRES_DB=guestbook - #- POSTGRES_PASSWORD_FILE=/run/secrets/db-password - - POSTGRES_PASSWORD=${DB_PASSWORD} + - POSTGRES_PASSWORD_FILE=/run/secrets/db-password + #- POSTGRES_PASSWORD=${DB_PASSWORD} expose: - 5432 healthcheck: