Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.7"
- x-web-common: &web-common
- image: docker_app_image:latest
- logging:
- driver: json-file
- links:
- - mock_oauth2_server
- working_dir: /app
- services:
- base:
- image: docker_tests_image:1.0.1
- container_name: test-runner
- volumes:
- - ./:/app
- working_dir: /app
- network_mode: host
- command: tail -F anything
- environment:
- - DOCKER_JWKS_URI=http://localhost:8080
- - DOCKER_OAUTH2_URI=http://localhost:3000
- - DOCKER_APP_URI=http://localhost:5000
- - RESOURCE_ID=acceptance_testing
- - DB_SERVER=127.0.0.1
- - DB_NAME=master
- - DB_USERNAME=sa
- - DB_PASSWORD=sa_password
- - NGINX_WORKER_PROCESSES=1
- - UWSGI_CHEAPER=1
- sqlserver:
- image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu
- container_name: docker-test-db
- ports:
- - "1433:1433"
- environment:
- - ACCEPT_EULA=Y
- - SA_PASSWORD=sa_password
- web:
- << : *web-common
- environment:
- - RESOURCE_ID=acceptance_testing
- - MS_JWKS_URL=http://mock_oauth2_server:3000/openid-configuration
- - DB_SERVER=sqlserver
- - DB_NAME=master
- - DB_USERNAME=sa
- - DB_PASSWORD=sa_password
- - ROUTE=/
- - NGINX_WORKER_PROCESSES=1
- - UWSGI_CHEAPER=1
- container_name: app-runner
- ports:
- - "5000:80"
- volumes:
- - ./app:/app
- mock_oauth2_server:
- image: docker_mock_oauth2
- container_name: oauth2-mock
- ports:
- - "3000:3000"
- - "8080:8080"
- environment:
- - JWKS_URI=http://mock_oauth2_server:8080
Add Comment
Please, Sign In to add comment