This commit is contained in:
parent
2d8ea729de
commit
541065bb2c
@ -54,40 +54,40 @@ jobs:
|
||||
- name: Create docker-compose.yml
|
||||
run: |
|
||||
cat > docker-compose.yml << 'EOL'
|
||||
services:
|
||||
backend:
|
||||
image: harbor.galpodlipnik.com/chat-app/backend:latest
|
||||
restart: always
|
||||
# Instead of env_file, define the environment variables directly
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- CORS_ORIGIN=http://localhost:5173
|
||||
- DATABASE_URL=${DATABASE_URL}
|
||||
- JWT_SECRET=${JWT_SECRET}
|
||||
networks:
|
||||
- chat-network
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
services:
|
||||
backend:
|
||||
image: harbor.galpodlipnik.com/chat-app/backend:latest
|
||||
restart: always
|
||||
# Instead of env_file, define the environment variables directly
|
||||
environment:
|
||||
- NODE_ENV=production
|
||||
- PORT=3000
|
||||
- CORS_ORIGIN=http://localhost:5173
|
||||
- DATABASE_URL=${DATABASE_URL}
|
||||
- JWT_SECRET=${JWT_SECRET}
|
||||
networks:
|
||||
- chat-network
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "-qO-", "http://localhost:3000/health"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
frontend:
|
||||
image: harbor.galpodlipnik.com/chat-app/frontend:latest
|
||||
restart: always
|
||||
ports:
|
||||
- "5173:80"
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- chat-network
|
||||
frontend:
|
||||
image: harbor.galpodlipnik.com/chat-app/frontend:latest
|
||||
restart: always
|
||||
ports:
|
||||
- "5173:80"
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
networks:
|
||||
- chat-network
|
||||
|
||||
networks:
|
||||
chat-network:
|
||||
driver: bridge
|
||||
EOL
|
||||
networks:
|
||||
chat-network:
|
||||
driver: bridge
|
||||
EOL
|
||||
|
||||
- name: Deploy with SSH
|
||||
uses: appleboy/ssh-action@master
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user