- Changed Docker image references in docker-compose.yml to utilize environment variables for versioning. - Updated GitHub Actions workflow to generate and use dynamic image tags based on the commit SHA for both web and bot images. - Ensured that the .env file is populated with the new image tags during the deployment process.
29 lines
504 B
YAML
29 lines
504 B
YAML
services:
|
|
web:
|
|
image: ${DOCKERHUB_USERNAME}/zapishis-web:${WEB_IMAGE_TAG}
|
|
env_file:
|
|
- .env
|
|
restart: always
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
|
|
interval: 10s
|
|
timeout: 3s
|
|
retries: 5
|
|
networks:
|
|
- app
|
|
- web
|
|
|
|
bot:
|
|
image: ${DOCKERHUB_USERNAME}/zapishis-bot:${BOT_IMAGE_TAG}
|
|
env_file:
|
|
- .env
|
|
restart: always
|
|
networks:
|
|
- app
|
|
|
|
networks:
|
|
app:
|
|
external: true
|
|
web:
|
|
external: true
|