Skip to content

Commit

Permalink
update docker compose (can setup version now)
Browse files Browse the repository at this point in the history
  • Loading branch information
bomzheg committed Sep 11, 2023
1 parent 8bcfdd8 commit a2d8d43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ name: ShvatkaBotBuild
on:
push:
branches: [ master ]
tags: ["*.*.*"]

jobs:
lint-and-test:
Expand Down
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ services:

shvatka_bot:
restart: always
image: bomzheg/shvatka:latest
image: "bomzheg/shvatka:${SHVATKA_VERSION:-latest}"
volumes:
- type: "bind"
source: "./config/"
Expand All @@ -24,7 +24,7 @@ services:
profiles:
- "migrate"
restart: "no"
image: bomzheg/shvatka:latest
image: "bomzheg/shvatka:${SHVATKA_VERSION:-latest}"
volumes:
- type: "bind"
source: "./config/"
Expand All @@ -43,7 +43,7 @@ services:
profiles:
- "cli"
restart: "no"
image: bomzheg/shvatka:latest
image: "bomzheg/shvatka:${SHVATKA_VERSION:-latest}"
volumes:
- type: "bind"
source: "./config/"
Expand All @@ -58,7 +58,7 @@ services:

telegram-bot-api:
profiles: [ "botapi" ]
image: aiogram/telegram-bot-api:latest
image: "aiogram/telegram-bot-api:${BOTAPI_VERSION:-latest}"
environment:
TELEGRAM_API_ID: "6"
TELEGRAM_API_HASH: "eb06d4abfb49dc3eeb1aeb98ae0f581e"
Expand All @@ -70,7 +70,7 @@ services:

nginx:
profiles: [ "botapi" ]
image: nginx:latest
image: "nginx:${NGINX:-latest}"
volumes:
- telegram-bot-api-data:/usr/share/nginx/html/var/lib/telegram-bot-api:ro
environment:
Expand All @@ -80,7 +80,7 @@ services:

redis-dev:
profiles: [ "dev" ]
image: "redis:6-alpine"
image: "redis:${REDIS_VERSION:-6.2.13-alpine}"
entrypoint: redis-server --appendonly yes
volumes:
- redis_data:/data
Expand All @@ -90,7 +90,7 @@ services:
- "6379:6379"

redis:
image: "redis:6-alpine"
image: "redis:${REDIS_VERSION:-6.2.13-alpine}"
entrypoint: redis-server --appendonly yes
volumes:
- redis_data:/data
Expand Down

0 comments on commit a2d8d43

Please sign in to comment.