Skip to content
Snippets Groups Projects
Commit 86a393c1 authored by Pernille Welle-Watne's avatar Pernille Welle-Watne
Browse files

using docker compose

parent 55b408ce
No related branches found
No related tags found
5 merge requests!9Error 1,!7Boundary tests,!6Task 2 coverage test,!5Task 2 coverage test,!3Google calendar
...@@ -10,55 +10,14 @@ test: ...@@ -10,55 +10,14 @@ test:
- pip install -r requirements.txt - pip install -r requirements.txt
- python manage.py test - python manage.py test
build:
stage: build
image: docker:stable
services:
backend:
container_name: django_group_${GROUPID}
build:
context: backend/secfit/
dockerfile: Dockerfile
args:
DJANGO_SUPERUSER_USERNAME: "${DJANGO_SUPERUSER_USERNAME}"
DJANGO_SUPERUSER_PASSWORD: "${DJANGO_SUPERUSER_PASSWORD}"
DJANGO_SUPERUSER_EMAIL: "${DJANGO_SUPERUSER_EMAIL}"
environment:
- GROUPID=${GROUPID}
networks:
backend_bridge:
ipv4_address: 10.${GROUPID}.0.4
application:
container_name: node_group_${GROUPID}
build:
context: frontend/
dockerfile: Dockerfile
args:
GROUPID: ${GROUPID}
DOMAIN: ${DOMAIN}
URL_PREFIX: ${URL_PREFIX}
PORT_PREFIX: ${PORT_PREFIX}
networks:
backend_bridge:
ipv4_address: 10.${GROUPID}.0.5
web: services:
container_name: nginx_group_${GROUPID} - docker:dind
build: build:
context: . image: docker
dockerfile: Dockerfile
ports:
- ${PORT_PREFIX}${GROUPID}:80
environment:
- GROUPID=${GROUPID}
- PORT_PREFIX=${PORT_PREFIX}
networks:
backend_bridge:
ipv4_address: 10.${GROUPID}.0.6
script: script:
- docker build - apk add --no-cache docker-compose
- docker-compose up -d
staging: staging:
......
...@@ -2,4 +2,4 @@ build: ...@@ -2,4 +2,4 @@ build:
docker: docker:
web: Dockerfile web: Dockerfile
run: run:
web: gunicorn hello_django.wsgi:application --bind 0.0.0.0:$PORT web:
\ No newline at end of file \ No newline at end of file
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