SHARE
TWEET

Untitled

a guest Jun 17th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3.6'
  2. services:
  3.     ############################################################################
  4.     ############################    Databases      #############################
  5.     ############################################################################
  6.  
  7.     ##
  8.     # Postgres team20 and stars10
  9.     #
  10.     # Restore from backup:
  11.     # 1. Mount smb://192.168.6.250/users$
  12.     # 2. rsync --progress /Volumes/users\$/IT\ Development/STARS_I_Database/stars1_dev_scrambled.backup ~/www/stars20/database/stars10/stars1_dev_scrambled.backup
  13.     # 3. ~/www/stars20/database/stars10/restore.sh
  14.     # 4. ~/www/stars20/database/team20/restore.sh
  15.     #
  16.     postgres:
  17.       image: postgres:10-alpine
  18.       container_name: postgres
  19.       working_dir: /backups
  20.       volumes:
  21.         - ./data/postgres:/var/lib/postgresql/data:delegated
  22.         - ../../database:/backups
  23.       environment:
  24.         - POSTGRES_USER=postgres
  25.         - POSTGRES_PASSWORD=postgres
  26.         - POSTGRES_DB=team20
  27.       ports:
  28.        - '54321:5432'
  29.  
  30.     redis:
  31.       image: redis:4.0-alpine
  32.       container_name: redis
  33.       command: redis-server /usr/local/etc/redis/redis.conf
  34.       volumes:
  35.         - ./redis/redis.conf:/usr/local/etc/redis/redis.conf:cached
  36.       ports:
  37.         - '6378:6379'
  38.       command: >
  39.         --requirepass secret
  40.  
  41.     ############################################################################
  42.     ##########################    Applications      ############################
  43.     ############################################################################
  44.  
  45.     # Team Webserver
  46.     nginx-team:
  47.       image: nginx:alpine
  48.       container_name: nginx-team
  49. #      environment:
  50. #        APP_ENV: docker
  51. #        PHP_IDE_CONFIG: serverName=phpfpm-team
  52. #        XDEBUG_CONFIG: idekey=PHPSTORM
  53.       working_dir: /var/www/app
  54.       volumes:
  55.          - ../../team:/var/www/app:cached
  56.          - ./nginx/team.conf:/etc/nginx/conf.d/default.conf:cached
  57.       ports:
  58.       - '8001:80'
  59.  
  60.     nginx-team-demo:
  61.       image: nginx:alpine
  62.       container_name: nginx-team-demo
  63. #      environment:
  64. #        APP_ENV: docker
  65. #        PHP_IDE_CONFIG: serverName=phpfpm-team
  66. #        XDEBUG_CONFIG: idekey=PHPSTORM
  67.       working_dir: /var/www/app
  68.       volumes:
  69.          - ../../team:/var/www/app:cached
  70.          - ./nginx/team-demo.conf:/etc/nginx/conf.d/default.conf:cached
  71.       ports:
  72.       - '8000:80'
  73.  
  74.     # Team PHP runtime
  75.     team-phpfpm-demo:
  76.       environment:
  77.        APP_ENV: docker
  78.       build: php-fpm/demo
  79.       container_name: team-phpfpm-demo
  80.       ports:
  81.         - "9002:9002"
  82.       working_dir: /var/www/app
  83.       volumes:
  84.        - ../../team:/var/www/app:cached
  85.        - ../../packages:/var/www/packages:cached
  86.  
  87.     # Team PHP runtime
  88.     phpfpm-team:
  89.       environment:
  90.        APP_ENV: docker
  91.        PHP_IDE_CONFIG: serverName=phpfpm-team
  92.        XDEBUG_CONFIG: idekey=PHPSTORM
  93.       build: php-fpm/dev
  94.       container_name: phpfpm-team
  95.       ports:
  96.         - "9001:9001"
  97.       working_dir: /var/www/app
  98.       volumes:
  99.        - ../../team:/var/www/app:cached
  100.        - ../../packages:/var/www/packages:cached
  101.        - ./logs/php-fpm/:/tmp/xdebug_log:delegated
  102.  
  103.     # Team queue
  104.     queue-team:
  105.       build: queue-worker
  106.       container_name: queue-team
  107.       depends_on: [redis, postgres]
  108.       volumes:
  109.        - ../../team:/var/www/app:cached
  110.        - ../../packages:/var/www/packages:cached
  111.       environment:
  112.         APP_ENV: docker
  113.         QUEUE_CONNECTION: redis
  114.         QUEUE_NAME: default
  115.  
  116.     # Team Echo
  117.     team-echo:
  118.       build: echo
  119.       container_name: team-echo
  120.       depends_on: [redis, postgres]
  121.       ports:
  122.         - '6001:6001'
  123.  
  124.     # Portal Webserver
  125.     nginx-portal:
  126.       image: nginx:alpine
  127.       container_name: nginx-portal
  128.       working_dir: /var/www/app
  129.       volumes:
  130.          - ../../portal:/var/www/app:cached
  131.          - ./nginx/portal.conf:/etc/nginx/conf.d/default.conf:cached
  132.       ports:
  133.       - '8002:80'
  134.  
  135.     # Portal API Webserver
  136.     portal-api-nginx:
  137.       image: nginx:alpine
  138.       container_name: portal-api-nginx
  139.       working_dir: /var/www/app
  140.       volumes:
  141.          - ../../portal-api:/var/www/app:cached
  142.          - ./nginx/portal-api.conf:/etc/nginx/conf.d/default.conf:cached
  143.       ports:
  144.       - '8004:80'
  145.  
  146.     # Portal API PHP runtime
  147. #    portal-api-phpfpm:
  148. #      environment:
  149. #       APP_ENV: docker
  150. #       PHP_IDE_CONFIG: serverName=portal-api-phpfpm
  151. #       XDEBUG_CONFIG: idekey=PHPSTORM
  152. #      build: php-fpm
  153. #      container_name: portal-api-phpfpm
  154. #      working_dir: /var/www/app
  155. #      volumes:
  156. #       - ../../portal-api:/var/www/app:cached
  157. #       - ../../packages:/var/www/packages:cached
  158. #       - ./php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini:cached
  159.  
  160.     # Portal PHP runtime
  161.     phpfpm-portal:
  162.       environment:
  163.        APP_ENV: docker
  164.        PHP_IDE_CONFIG: serverName=phpfpm-portal
  165.        XDEBUG_CONFIG: idekey=PHPSTORM
  166.       build: php-fpm/dev
  167.       container_name: phpfpm-portal
  168.       working_dir: /var/www/app
  169.       volumes:
  170.        - ../../portal:/var/www/app:cached
  171.        - ../../packages:/var/www/packages:cached
  172.        - ./php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini:cached
  173.  
  174.     # Quasar Webserver
  175.     nginx-quasar:
  176.       image: nginx:alpine
  177.       container_name: nginx-quasar
  178.       working_dir: /var/www/app
  179.       volumes:
  180.          - ../../kiosk-api:/var/www/app:cached
  181.          - ./nginx/quasar.conf:/etc/nginx/conf.d/default.conf:cached
  182.       ports:
  183.       - '8003:80'
  184.  
  185.     # Quasar PHP runtime
  186.     phpfpm-quasar:
  187.       environment:
  188.        APP_ENV: docker
  189.        PHP_IDE_CONFIG: serverName=phpfpm-quasar
  190.        XDEBUG_CONFIG: idekey=PHPSTORM
  191.       build: php-fpm/dev
  192.       container_name: phpfpm-quasar
  193.       working_dir: /var/www/app
  194.       volumes:
  195.        - ../../kiosk-api:/var/www/app:cached
  196.        - ../../packages:/var/www/packages:cached
  197.        - ./php-fpm/php-ini-overrides.ini:/etc/php/7.1/fpm/conf.d/99-overrides.ini:cached
  198.  
  199.  
  200.     # Quasar Webserver
  201.     apigility-nginx:
  202.       image: nginx:alpine
  203.       container_name: apigility-nginx
  204.       working_dir: /var/www/app
  205.       volumes:
  206.          - ../../api_1:/var/www/app:cached
  207.          - ../../common:/var/www/common:cached
  208.          - ./nginx/apigility.conf:/etc/nginx/conf.d/default.conf:cached
  209.       ports:
  210.       - '8005:80'
  211.  
  212.     # Apigility PHP runtime
  213.     apigility-phpfpm:
  214.       container_name: apigility-phpfpm
  215.       environment:
  216.        APP_ENV: docker
  217.        PHP_IDE_CONFIG: serverName=apigility-phpfpm
  218.        XDEBUG_CONFIG: idekey=PHPSTORM
  219.       build: php56-fpm
  220.       working_dir: /var/www/app
  221.       volumes:
  222.        - ../../api_1:/var/www/app:cached
  223.        - ../../common:/var/www/common:cached
  224.        - ./php56-fpm/php-ini-overrides.ini:/etc/php/5.6/fpm/conf.d/99-overrides.ini:cached
  225.  
  226.     ############################################################################
  227.     ############################    Services      ##############################
  228.     ############################################################################
  229.  
  230.     mailhog:
  231.       image: mailhog/mailhog:latest
  232.       container_name: mailhog
  233.       ports:
  234.         - "1025:1025"
  235.         - "8025:8025"
  236.  
  237.     athena:
  238.       image: arachnysdocker/athenapdf-service
  239.       container_name: athena
  240.       environment:
  241.         - WEAVER_AUTH_KEY=arachnys-weaver
  242.       ports:
  243.         - "4001:8080"
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top