SHARE
TWEET

Untitled

a guest Feb 19th, 2020 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '2'
  2. services:
  3.   redis:
  4.     image: "redis:alpine"
  5.     container_name: redis
  6.     networks:
  7.       eduschl_net:
  8.         aliases:
  9.           - redis
  10.     ports:
  11.       - "6379"
  12.   postgresql:
  13.     image: postgres:alpine
  14.     container_name: postgresql
  15.     networks:
  16.       eduschl_net:
  17.         aliases:
  18.           - postgresql
  19.     ports:
  20.       - "5432"
  21.     volumes:
  22.       - postgresql:/var/lib/postgresql/data
  23.     environment:
  24.       - POSTGRES_USER=admin
  25.   project:
  26.     build:
  27.       context: ./
  28.       dockerfile: src/test/docker/project/Dockerfile
  29.     container_name: project
  30.     networks:
  31.       eduschl_net:
  32.         aliases:
  33.           - project
  34.     ports:
  35.       - "8000:8000"
  36.     volumes:
  37.       - ./:/root/project
  38.     environment:
  39.       - PROJECT_ROOT=/root/project
  40.       - DJANGO_SETTINGS_MODULE=web_edu.settings
  41.       - PYTHONPATH=/root/project/src/
  42.       - WEB_EDU_CONFIG_PATH=/root/project/src/test/docker/conf/
  43.     depends_on:
  44.       - redis
  45.       - postgresql
  46.     command:
  47.       ["/bin/bash", "-c", "/root/project/src/test/docker/project/migrate_and_start.sh"]
  48.   behave:
  49.     build:
  50.       context: ./
  51.       dockerfile: src/test/docker/behave/Dockerfile
  52.     container_name: behave
  53.     links:
  54.       - project
  55.     networks:
  56.       eduschl_net:
  57.         aliases:
  58.           - behave
  59.     ports:
  60.       - "1234:1234"
  61.     volumes:
  62.       - ./:/root/project
  63.     environment:
  64.       - PROJECT_ROOT=/root/project
  65.       - DJANGO_SETTINGS_MODULE=web_edu.settings
  66.       - PYTHONPATH=/root/project/src/
  67.       - WEB_EDU_CONFIG_PATH=/root/project/src/test/docker/conf/
  68.     depends_on:
  69.       - project
  70.     command:
  71.       ["/bin/bash", "-c", "/root/project/src/test/docker/behave/run_behave.sh"]
  72. networks:
  73.   eduschl_net:
  74.     driver: bridge
  75. volumes:
  76.   postgresql:
  77.     driver: local
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top