Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 3.22 KB | None | 0 0
  1. version: '2'
  2. services:
  3. ### Code Container #######################################################################################
  4.     applications:
  5.         container_name: application
  6.         image: registry.gitlab.lc:5000/develop/ed/develop.sources:latest
  7.         volumes:
  8.            - static:/var/www/static
  9.             - /var/www/staticus:/var/www/staticus
  10. ### PHP-FPM Container ###################################################################################
  11.     php-fpm:
  12.         container_name: php-fpm
  13.         image: registry.gitlab.lc:5000/develop/ed/php-fpm-ed-sq:latest
  14.         volumes_from:
  15.            - applications
  16.         expose:
  17.            - "9000"
  18. ### Nginx Container #####################################################################################
  19.     nginx:
  20.         container_name: nginx
  21.         image: registry.gitlab.lc:5000/develop/ed/nginx-ed-sq:latest
  22.         volumes_from:
  23.            - applications
  24.         depends_on:
  25.            - "websocket"
  26.             - "php-fpm"
  27.         ports:
  28.            - "80:80"
  29.             - "443:443"
  30. ### Redis Container ####################################################################################
  31.     redis:
  32.         container_name: redis
  33.         image: registry.gitlab.lc:5000/develop/ed/redis-ed-sq:latest
  34.         volumes:
  35.            - redis:/data
  36.         ports:
  37.            - "6379:6379"
  38. ### Memcached Container ################################################################################
  39.     memcached:
  40.         container_name: memcached
  41.         image: registry.gitlab.lc:5000/develop/ed/memcached-ed-sq:latest
  42.         volumes:
  43.            - memcached:/var/lib/memcached
  44.         ports:
  45.            - "11211:11211"
  46. ### Staticus Container ################################################################################
  47.     staticus:
  48.         container_name: staticus
  49.         image: registry.gitlab.lc:5000/develop/ed/staticus-ed-sq:latest
  50.         depends_on:
  51.            - "php-fpm"
  52.         volumes_from:
  53.            - applications
  54.         ports:
  55.            - "8083:8083"
  56.         networks:
  57.             default:
  58.                 ipv4_address: 172.25.0.10
  59. ### Websocket Container ################################################################################
  60.     websocket:
  61.         container_name: websocket
  62.         restart: always
  63.         image: registry.gitlab.lc:5000/develop/ed/websocket-ed-sq:latest
  64.         depends_on:
  65.            - "redis"
  66.             - "php-fpm"
  67.         environment:
  68.            - WS_PORT=${WS_PORT}
  69.             - REDIS_HOST=${REDIS_HOST}
  70.             - REDIS_PORT=${REDIS_PORT}
  71.             - REDIS_PASS=${REDIS_PASS}
  72.         ports:
  73.            - "${WS_PORT}:${WS_PORT}"
  74. ### Volumes Setup ######################################################################################
  75. volumes:
  76.     memcached:
  77.         driver: "local"
  78.     redis:
  79.         driver: "local"
  80.     static:
  81.         driver: "local"
  82.         driver_opts:
  83.           type: nfs
  84.           o: addr=192.168.0.218,rw
  85.           device: ":/srv/static"
  86. ### Networks Setup #####################################################################################
  87. networks:
  88.   default:
  89.     driver: bridge
  90.     ipam:
  91.       config:
  92.       - subnet: 172.25.0.0/24
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement