daily pastebin goal
60%
SHARE
TWEET

Untitled

a guest Nov 8th, 2018 120 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2.  
  3. services:
  4.   exosuite-api-php-fpm:
  5.     working_dir: ${STORAGE_PATH}/${API_FOLDER_NAME}
  6.     build:
  7.       context: ./php-fpm
  8.     restart: ${RESTART_MODE}
  9.     container_name: exosuite-api-php-fpm
  10.     volumes:
  11.       - ${API_FOLDER_PATH}:${STORAGE_PATH}/${API_FOLDER_NAME}
  12.       - /etc/hosts:/etc/hosts
  13.     networks:
  14.       - exosuite-network
  15.  
  16.   exosuite-website-php-fpm:
  17.     working_dir: ${STORAGE_PATH}/${WEBSITE_FOLDER_NAME}
  18.     build:
  19.       context: ./php-fpm
  20.     restart: ${RESTART_MODE}
  21.     container_name: exosuite-website-php-fpm
  22.     volumes:
  23.       - ${WEBSITE_FOLDER_PATH}:${STORAGE_PATH}/${WEBSITE_FOLDER_NAME}
  24.       - /etc/hosts:/etc/hosts
  25.     networks:
  26.       - exosuite-network
  27.  
  28.   nginx:
  29.     hostname: exosuite.local api.exosuite.local
  30.     restart: ${RESTART_MODE}
  31.     build:
  32.       context: ./server_confs/${ENVIRONMENT}
  33.       args:
  34.         - ENVIRONMENT=${ENVIRONMENT}
  35.     ports:
  36.       - ${NGINX_PORT}
  37.     volumes:
  38.       - ${API_FOLDER_PATH}:${STORAGE_PATH}/${API_FOLDER_NAME}
  39.       - ${WEBSITE_FOLDER_PATH}:${STORAGE_PATH}/${WEBSITE_FOLDER_NAME}
  40.     container_name: nginx
  41.     depends_on:
  42.       - exosuite-api-php-fpm
  43.       - exosuite-website-php-fpm
  44.       - exosuite-api-postgres
  45.       - exosuite-website-postgres
  46.     networks:
  47.       - exosuite-network
  48.  
  49.   resolver:
  50.     image: dvdarias/docker-hoster:latest
  51.     volumes:
  52.       - /etc/hosts:/tmp/hosts
  53.       - /var/run/docker.sock:/tmp/docker.sock
  54.     networks:
  55.       - exosuite-network
  56.     container_name: resolver
  57.  
  58.   exosuite-api-postgres:
  59.     restart: ${RESTART_MODE}
  60.     build:
  61.       context: ./postgres-postgis
  62.     ports:
  63.       - ${API_POSTGRES_PORT}
  64.     container_name: exosuite-api-postgres
  65.     environment:
  66.       - POSTGRES_DB=exosuite-users-api
  67.       - POSTGRES_USER=exosuite
  68.       - POSTGRES_PASSWORD=root
  69.       - PGDATA=/var/lib/postgresql/data/pgdata
  70.     networks:
  71.       - exosuite-network
  72.     volumes:
  73.       - ${STORAGE_PATH}/exosuite-api-postgres:/var/lib/postgresql/data/pgdata
  74.  
  75.   exosuite-website-postgres:
  76.     restart: ${RESTART_MODE}
  77.     image: postgres:11-alpine
  78.     container_name: exosuite-website-postgres
  79.     environment:
  80.       - POSTGRES_DB=exosuite-website
  81.       - POSTGRES_USER=exosuite
  82.       - POSTGRES_PASSWORD=root
  83.       - PGDATA=/var/lib/postgresql/data/pgdata
  84.     networks:
  85.       - exosuite-network
  86.     volumes:
  87.       - ${STORAGE_PATH}/exosuite-website-postgres:/var/lib/postgresql/data/pgdata
  88.  
  89.   exosuite-laravel-echo-server:
  90.     restart: ${RESTART_MODE}
  91.     build:
  92.       context: ./laravel-echo-server
  93.     container_name: exosuite-laravel-echo-server
  94.     environment:
  95.       - APP_URL=http://api.exosuite.local
  96.       - APP_DEBUG=true
  97.       - REDIS_HOST=${REDIS_HOST}
  98.       - LES_DB=redis
  99.     networks:
  100.       - exosuite-network
  101.     depends_on:
  102.       - exosuite-redis-live
  103.  
  104.   exosuite-redis-store:
  105.     restart: ${RESTART_MODE}
  106.     container_name: exosuite-redis-store
  107.     image: redis:alpine
  108.     volumes:
  109.       - ${STORAGE_PATH}/exosuite-redis-store:/data
  110.     networks:
  111.       - exosuite-network
  112.     command: ["sh", "-c",'docker-entrypoint.sh --appendonly yes']
  113.  
  114.   exosuite-redis-live:
  115.     restart: ${RESTART_MODE}
  116.     container_name: exosuite-redis-live
  117.     image: redis:alpine
  118.     volumes:
  119.       - ${STORAGE_PATH}/exosuite-redis-live:/data
  120.     networks:
  121.       - exosuite-network
  122.     command: ["sh", "-c",'docker-entrypoint.sh --appendonly yes']
  123.  
  124.   exosuite-laravel-horizon:
  125.     restart: ${RESTART_MODE}
  126.     container_name: exosuite-laravel-horizon
  127.     build:
  128.       context: laravel-artisan
  129.     volumes:
  130.       - ${API_FOLDER_PATH}:${STORAGE_PATH}/${API_FOLDER_NAME}
  131.     environment:
  132.       - COMMAND=horizon
  133.       - WORKDIR=${STORAGE_PATH}/${API_FOLDER_NAME}
  134.     networks:
  135.       - exosuite-network
  136.     depends_on:
  137.       - exosuite-laravel-echo-server
  138.  
  139.   exosuite-scheduler:
  140.     restart: ${RESTART_MODE}
  141.     container_name: exosuite-scheduler
  142.     build:
  143.       context: laravel-artisan
  144.     volumes:
  145.       - ${API_FOLDER_PATH}:${STORAGE_PATH}/${API_FOLDER_NAME}
  146.     environment:
  147.       - COMMAND=schedule:daemon
  148.       - WORKDIR=${STORAGE_PATH}/${API_FOLDER_NAME}
  149.     networks:
  150.       - exosuite-network
  151.     depends_on:
  152.       - exosuite-laravel-echo-server
  153.  
  154.  
  155. networks:
  156.   exosuite-network:
  157.     driver: bridge
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