funcelot

docker-compose.yml

Aug 27th, 2020 (edited)
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.57 KB | None | 0 0
  1. version: "3.7"
  2.  
  3. x-web-common: &web-common
  4.   image: docker_app_image:latest
  5.   logging:
  6.     driver: json-file
  7.   links:
  8.    - mock_oauth2_server
  9.   working_dir: /app
  10.  
  11. services:
  12.   base:
  13.     image: docker_tests_image:1.0.1
  14.     container_name: test-runner
  15.     volumes:
  16.      - ./:/app
  17.     working_dir: /app
  18.     network_mode: host
  19.     command: tail -F anything
  20.     environment:
  21.      - DOCKER_JWKS_URI=http://localhost:8080
  22.       - DOCKER_OAUTH2_URI=http://localhost:3000
  23.       - DOCKER_APP_URI=http://localhost:5000
  24.       - RESOURCE_ID=acceptance_testing
  25.       - DB_SERVER=127.0.0.1
  26.       - DB_NAME=master
  27.       - DB_USERNAME=sa
  28.       - DB_PASSWORD=sa_password
  29.       - NGINX_WORKER_PROCESSES=1
  30.       - UWSGI_CHEAPER=1
  31.  
  32.   sqlserver:
  33.     image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu
  34.     container_name: docker-test-db
  35.     ports:
  36.    - "1433:1433"
  37.     environment:
  38.    - ACCEPT_EULA=Y
  39.     - SA_PASSWORD=sa_password
  40.  
  41.   web:
  42.     << : *web-common
  43.     environment:
  44.      - RESOURCE_ID=acceptance_testing
  45.       - MS_JWKS_URL=http://mock_oauth2_server:3000/openid-configuration
  46.       - DB_SERVER=sqlserver
  47.       - DB_NAME=master
  48.       - DB_USERNAME=sa
  49.       - DB_PASSWORD=sa_password
  50.       - ROUTE=/
  51.       - NGINX_WORKER_PROCESSES=1
  52.       - UWSGI_CHEAPER=1
  53.     container_name: app-runner
  54.     ports:
  55.      - "5000:80"
  56.     volumes:
  57.      - ./app:/app
  58.  
  59.   mock_oauth2_server:
  60.     image: docker_mock_oauth2
  61.     container_name: oauth2-mock
  62.     ports:
  63.      - "3000:3000"
  64.       - "8080:8080"
  65.     environment:
  66.      - JWKS_URI=http://mock_oauth2_server:8080
  67.  
Add Comment
Please, Sign In to add comment