Skip to content
Snippets Groups Projects
Unverified Commit 30c12fd7 authored by Pavel Kirilin's avatar Pavel Kirilin :alien:
Browse files

Fixed deploy configuration.


Signed-off-by: default avatarPavel Kirilin <win10@list.ru>
parent 356c7166
No related branches found
No related tags found
No related merge requests found
Pipeline #140 passed
......@@ -17,7 +17,7 @@ service: build_service
## Wait until postgres is up
service_wait:
@docker exec -it telegram_system_bot make wait_resources
@docker exec -i telegram_system_bot make wait_resources
_run_local:
@docker-compose up -d
......@@ -39,11 +39,11 @@ rm:
@docker-compose down -v
## Clean all containers
clean_service:
clean_prod:
@docker-compose -f docker-compose.prod.yml down
## Remove containers and volumes
rm_service:
rm_prod:
@docker-compose -f docker-compose.prod.yml down -v
## Runs PostgreSQL UI. | Database
......@@ -61,7 +61,7 @@ migrations:
## Upgrades database.
migrate:
@docker exec -it telegram_system_bot alembic upgrade head;
@docker exec -i telegram_system_bot alembic upgrade head;
## Waits postgresql to be online
wait_resources:
......
......@@ -24,6 +24,8 @@ services:
networks:
- system_bot_network
command: make _run_bot
depends_on:
- system_bot_postgres
system_bot_postgres:
container_name: 'system_bot_postgres'
......
......@@ -25,6 +25,8 @@ services:
networks:
- dev_system_bot_network
command: make _dev_run_bot
depends_on:
- system_bot_postgres
system_bot_postgres:
container_name: 'system_bot_postgres'
......
......@@ -7,7 +7,7 @@ Type=simple
User=bots
WorkingDirectory=/home/bots/repos/system_admin
ExecStart=/bin/bash -c 'make prod'
ExecStop=/bin/bash -c 'make clean'
ExecStop=/bin/bash -c 'make clean_prod'
Restart=on-abort
[Install]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment