dockerhub

This commit is contained in:
Egor Matveev 2021-11-06 22:58:56 +03:00
parent b3fc01c253
commit b53b2d6ffd
2 changed files with 6 additions and 4 deletions

View File

@ -12,7 +12,8 @@ build:
tags: tags:
- main - main
script: script:
- docker build -t sprint . - docker build -t mathwave/sprint-repo:sprint .
- docker push mathwave/sprint-repo:sprint
deploy-dev: deploy-dev:
stage: deploy-dev stage: deploy-dev
@ -26,6 +27,7 @@ deploy-dev:
variables: variables:
PORT: 80 PORT: 80
script: script:
- docker pull mathwave/sprint-repo:sprint
- docker-compose up -d - docker-compose up -d
deploy-prod: deploy-prod:

View File

@ -18,7 +18,7 @@ services:
- "5432:5432" - "5432:5432"
web: web:
image: sprint image: mathwave/sprint-repo:sprint
restart: always restart: always
environment: environment:
PORT: $PORT PORT: $PORT
@ -34,7 +34,7 @@ services:
- rabbitmq - rabbitmq
bot: bot:
image: sprint image: mathwave/sprint-repo:sprint
restart: always restart: always
command: python manage.py bot command: python manage.py bot
depends_on: depends_on:
@ -51,7 +51,7 @@ services:
worker: worker:
restart: always restart: always
image: sprint image: mathwave/sprint-repo:sprint
privileged: true privileged: true
command: scripts/create_worker.sh command: scripts/create_worker.sh
environment: environment: