infra
This commit is contained in:
parent
61c55cc446
commit
3ee1a3e5ce
@ -13,7 +13,7 @@ build:
|
|||||||
before_script:
|
before_script:
|
||||||
- docker login -u mathwave -p $DOCKERHUB_PASSWORD
|
- docker login -u mathwave -p $DOCKERHUB_PASSWORD
|
||||||
script:
|
script:
|
||||||
- docker build -t sprint-base .
|
- docker build -t mathwave/sprint-repo:sprint .
|
||||||
- docker build -t local_postgres dockerfiles/postgres
|
- docker build -t local_postgres dockerfiles/postgres
|
||||||
- docker build -t local_rabbitmq dockerfiles/rabbitmq
|
- docker build -t local_rabbitmq dockerfiles/rabbitmq
|
||||||
- docker push mathwave/sprint-repo:sprint
|
- docker push mathwave/sprint-repo:sprint
|
||||||
|
@ -19,7 +19,7 @@ services:
|
|||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
migrations:
|
migrations:
|
||||||
image: sprint-base
|
image: mathwave/sprint-repo:sprint
|
||||||
command: ./manage.py migrate
|
command: ./manage.py migrate
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
@ -29,7 +29,7 @@ services:
|
|||||||
condition: none
|
condition: none
|
||||||
|
|
||||||
web:
|
web:
|
||||||
image: sprint-base
|
image: mathwave/sprint-repo:sprint
|
||||||
environment:
|
environment:
|
||||||
PORT: $PORT
|
PORT: $PORT
|
||||||
HOST: $HOST
|
HOST: $HOST
|
||||||
@ -47,7 +47,7 @@ services:
|
|||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
storage:
|
storage:
|
||||||
image: sprint-base
|
image: mathwave/sprint-repo:sprint
|
||||||
command: ./manage.py storage
|
command: ./manage.py storage
|
||||||
ports:
|
ports:
|
||||||
- "5555:5555"
|
- "5555:5555"
|
||||||
@ -59,7 +59,7 @@ services:
|
|||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
bot:
|
bot:
|
||||||
image: sprint-base
|
image: mathwave/sprint-repo:sprint
|
||||||
environment:
|
environment:
|
||||||
HOST: $HOST
|
HOST: $HOST
|
||||||
command: ./manage.py bot
|
command: ./manage.py bot
|
||||||
@ -71,7 +71,7 @@ services:
|
|||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
loop:
|
loop:
|
||||||
image: sprint-base
|
image: mathwave/sprint-repo:sprint
|
||||||
environment:
|
environment:
|
||||||
HOST: $HOST
|
HOST: $HOST
|
||||||
command: ./manage.py loop
|
command: ./manage.py loop
|
||||||
@ -93,7 +93,7 @@ services:
|
|||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
worker:
|
worker:
|
||||||
image: sprint-base
|
image: mathwave/sprint-repo:sprint
|
||||||
privileged: true
|
privileged: true
|
||||||
command: ./manage.py receive
|
command: ./manage.py receive
|
||||||
environment:
|
environment:
|
||||||
@ -114,7 +114,7 @@ services:
|
|||||||
condition: on-failure
|
condition: on-failure
|
||||||
|
|
||||||
apply-languages:
|
apply-languages:
|
||||||
image: sprint-base
|
image: mathwave/sprint-repo:sprint
|
||||||
command: ./manage.py apply_languages
|
command: ./manage.py apply_languages
|
||||||
depends_on:
|
depends_on:
|
||||||
- migrations
|
- migrations
|
||||||
@ -126,7 +126,7 @@ services:
|
|||||||
condition: none
|
condition: none
|
||||||
|
|
||||||
notify-admin:
|
notify-admin:
|
||||||
image: sprint-base
|
image: mathwave/sprint-repo:sprint
|
||||||
command: ./manage.py success_deploy
|
command: ./manage.py success_deploy
|
||||||
depends_on:
|
depends_on:
|
||||||
- migrations
|
- migrations
|
||||||
|
Loading…
Reference in New Issue
Block a user