gitlab
This commit is contained in:
parent
1600962042
commit
2ddfd02b3a
@ -1,9 +1,7 @@
|
||||
version: "3.6"
|
||||
services:
|
||||
nginx:
|
||||
image: nginx
|
||||
volumes:
|
||||
- ../nginx/nginx-dev.conf:/etc/nginx/nginx.conf
|
||||
image: sprint-infra-nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
deploy:
|
||||
@ -64,7 +62,6 @@ services:
|
||||
gitlab-runner:
|
||||
image: mathwave/sprint-repo:gitlab-runner
|
||||
volumes:
|
||||
- /etc/builds:/etc/builds
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
environment:
|
||||
GITLAB_REGISTRATION_TOKEN: $GITLAB_REGISTRATION_TOKEN
|
||||
|
@ -2,9 +2,7 @@ version: "3.6"
|
||||
|
||||
services:
|
||||
nginx:
|
||||
image: nginx
|
||||
volumes:
|
||||
- ../nginx/nginx-prod.conf:/etc/nginx/nginx.conf
|
||||
image: sprint-infra-nginx
|
||||
ports:
|
||||
- "80:80"
|
||||
deploy:
|
||||
@ -66,7 +64,6 @@ services:
|
||||
image: mathwave/sprint-repo:gitlab-runner
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /home:/home
|
||||
deploy:
|
||||
mode: replicated
|
||||
placement:
|
||||
|
@ -11,6 +11,7 @@ deploy-dev:
|
||||
when: on_success
|
||||
- when: manual
|
||||
script:
|
||||
- docker build -t sprint-infra-nginx nginx/nginx-dev
|
||||
- docker stack deploy -c ./.deploy/deploy-dev.yaml infra
|
||||
|
||||
deploy-prod:
|
||||
@ -21,4 +22,5 @@ deploy-prod:
|
||||
- master
|
||||
when: manual
|
||||
script:
|
||||
- docker build -t sprint-infra-nginx nginx/nginx-prod
|
||||
- docker stack deploy -c ./.deploy/deploy-prod.yaml infra
|
2
nginx/nginx-dev/Dockerfile
Normal file
2
nginx/nginx-dev/Dockerfile
Normal file
@ -0,0 +1,2 @@
|
||||
FROM nginx
|
||||
COPY ./nginx-dev.conf /etc/nginx/nginx.conf
|
2
nginx/nginx-prod/Dockerfile
Normal file
2
nginx/nginx-prod/Dockerfile
Normal file
@ -0,0 +1,2 @@
|
||||
FROM nginx
|
||||
COPY ./nginx-prod.conf /etc/nginx/nginx.conf
|
Loading…
Reference in New Issue
Block a user