Blame view

vendor/dmstr/yii2-adminlte-asset/tests/docker-compose.yml 2.25 KB
e9aa73b0   andryeyev   + adminLte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
  # Phundament 4 - Potemkin Testing Stack
  # =====================================
  
  # Note: Wait until `appcli` container has completed its startup.
  
  # Spawn a new project locally
  #
  #   docker-compose up -d
  #   docker-compose run appcli ../yii
  
  # Application services
  # --------------------
  
  # container to run one-off commands - a dockerized shell
  appcli:
    command: 'sh /app/src/run.sh'
    # should be replaced with: image: <project_name>_appsrc
    image: phundament/app:4.0.0-rc1-dev
    links:
      - 'mariadb:DB'
      - 'appnginx:WEB'
      - 'seleniumhub:HUB'
    volumes:
      - ../:/app/vendor/dmstr/yii2-adminlte-asset
      #- ./_config/local.php:/app/src/config/local.php
    volumes_from:
      - appsrc
    environment:
      DB_ENV_MYSQL_DATABASE: test-adminlte-1
      APP_MIGRATION_LOOKUP: '@app/migrations'
  
  appsrc:
    image: phundament/app:4.0.0-rc1-dev
    volumes:
      #- ../tests/_config/local.php:/app/src/config/local.php
      - '/app'
    command: 'tail -f /dev/null'
  
  # The php-fpm server for interpreting php code
  appfpm:
    environment:
      DB_ENV_MYSQL_DATABASE: test-adminlte-1
    image: phundament/php:5.6-fpm-4.0.0-rc1-dev
    # host-volume for local development
    volumes:
      - ../:/app/vendor/dmstr/yii2-adminlte-asset
      - ../example-views/yiisoft/yii2-app/layouts:/app/src/modules/backend/views/layouts
      #- ../tests/_config/local.php:/app/src/config/local.php
    volumes_from:
      - appsrc
    links:
      - 'mariadb:DB'
  
  # The nginx server for serving static files directly
  appnginx:
    image: schmunk42/nginx:1.7
    links:
      - 'appfpm:PHPFPM'
    # host-volume for local development
    volumes:
      - ../:/app/vendor/schmunk42/yii2-giiant
    volumes_from:
      - appsrc
    ports:
      - '80'
    environment:
      VIRTUAL_HOST: '~^test\.giiant\.'
  
  # Data Services
  # -------------
  
  mariadb:
    image: tutum/mariadb:10.1
    ports:
      - '3306'
    environment:
      MARIADB_PASS: secretadmin
  
  # Testing Services
  # ----------------
  
  seleniumchrome:
      image: 'selenium/node-chrome-debug:2.46.0'
      links:
          - 'appnginx:WEB'
          - 'seleniumhub:HUB'
      ports:
          - '5900'
  seleniumfirefox:
      image: 'selenium/node-firefox-debug:2.46.0'
      links:
          - 'appnginx:WEB'
          - 'seleniumhub:HUB'
      ports:
          - '5900'
  seleniumhub:
      image: 'selenium/hub:2.46.0'
      ports:
          - '4444'