Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.7'
- services:
- db:
- image: "postgres:13"
- environment:
- - "POSTGRES_HOST_AUTH_METHOD=trust"
- - "POSTGRES_USER=learnsys"
- - "POSTGRES_PASSWORD=learnsys"
- - "POSTGRES_DB=learnsys"
- ports:
- - 6543:5432 # makes this accessible from your development environment
- networks:
- - selenium-grid
- - default
- hub:
- image: selenium/hub:latest
- expose:
- - 4444
- networks:
- - selenium-grid
- chrome:
- image: selenium/node-chrome-debug:latest
- environment:
- - HUB_PORT_4444_TCP_ADDR=hub
- - HUB_PORT_4444_TCP_PORT=4444
- ports:
- - 5900:5900
- depends_on:
- - hub
- networks:
- - selenium-grid
- firefox:
- image: selenium/node-firefox-debug:latest
- environment:
- - HUB_PORT_4444_TCP_ADDR=hub
- - HUB_PORT_4444_TCP_PORT=4444
- ports:
- - 5901:5900
- depends_on:
- - hub
- networks:
- - selenium-grid
- web:
- build: .
- command:
- python /code/learnsys/manage.py runserver 0.0.0.0:8000
- volumes:
- - .:/code
- ports:
- - 8000:8000
- expose:
- - 8000
- depends_on:
- - db
- - migration
- networks:
- - selenium-grid
- - default
- migration:
- build: .
- command: bash -c
- "python /code/learnsys/manage.py makemigrations &&
- python /code/learnsys/manage.py migrate &&
- python /code/learnsys/manage.py loaddata initialdata"
- volumes:
- - .:/code
- depends_on:
- - db
- networks:
- - selenium-grid
- - default
- tests:
- build: .
- command: bash -c
- 'coverage run --source="." /code/learnsys/manage.py test --keepdb adminPage course courseIndex homepage lecturerPage userProfile userRegistration &&
- coverage report'
- volumes:
- - .:/code
- depends_on:
- - db
- - web
- - migration
- chrome-test:
- build: robot
- command: -v BROWSER:gc --outputdir /out /lstest
- volumes:
- - ./robot/lstest:/lstest:ro
- - ./results/gc:/out:rw
- depends_on:
- - web
- - chrome
- - db
- - migration
- - tests
- - firefox-test
- networks:
- - selenium-grid
- firefox-test:
- build: robot
- command: -v BROWSER:ff --outputdir /out /lstest
- volumes:
- - ./robot/lstest:/lstest:ro
- - ./results/ff:/out:rw
- depends_on:
- - web
- - firefox
- - db
- - migration
- - tests
- networks:
- - selenium-grid
- networks:
- selenium-grid:
- volumes:
- postgres_data:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement