daily pastebin goal
30%
SHARE
TWEET

Untitled

a guest Oct 17th, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. version: '3'
  2. services:
  3.   db:
  4.     image: postgres:latest
  5.     environment:
  6.       - POSTGRES_USER=actest
  7.       - POSTGRES_PASSWORD=5upame6ates2ing
  8.       - POSTGRES_DB=testing_ro
  9.       - constraint:host==database
  10.     volumes:
  11.       - pgdata:/var/lib/postgresql/data
  12.     ports:
  13.       - "5432:5432"
  14.  
  15.   mongo:
  16.    image: laztoum/mongo
  17.    environment:
  18.       - MONGO_USER=testing
  19.       - MONGO_PASSWORD=5upame6ates2ing
  20.       - MONGO_DB=testing_ro
  21.       - constraint:host==database
  22.    ports:
  23.       - "27017:27017"
  24.  
  25.   redis:
  26.     image: redis:3.2.8
  27.     volumes:
  28.       - redisdata:/data
  29.       - /shared_logs/redis:/var/log/
  30.     sysctls:
  31.       - net.core.somaxconn=65536
  32.       - net.ipv4.tcp_syncookies=0
  33.     ulimits:
  34.       nproc: 65535
  35.       nofile:
  36.         soft: 20000
  37.         hard: 40000
  38.     ports:
  39.       - "6399:6379"
  40.  
  41.   rabbitmq:
  42.     image: rabbitmq:3
  43.     volumes:
  44.       - /shared_logs/rabbitmq:/var/log/rabbitmq/
  45.  
  46.  
  47.   web:
  48.     build: .
  49.     sysctls:
  50.       - net.core.somaxconn=65536
  51.       - net.ipv4.tcp_syncookies=0
  52.     ulimits:
  53.       nproc: 65535
  54.       nofile:
  55.         soft: 20000
  56.         hard: 40000
  57.     volumes:
  58.       - upstream:/socket
  59.       - /shared_logs/uwsgi:/var/log/uwsgi
  60.       - /shared_logs/uwsgi:/code/logs
  61.       - .:/code/webapp/core
  62.     # command: uwsgi --ini /etc/uwsgi.ini
  63.  
  64.  
  65.   nginx:
  66.     build:
  67.       context: .
  68.       dockerfile: Dockerfile-nginx
  69.      # links: admin:uwsgi
  70.     sysctls:
  71.       - net.core.somaxconn=65536
  72.       - net.ipv4.tcp_syncookies=0
  73.     ulimits:
  74.       nproc: 65535
  75.       nofile:
  76.         soft: 20000
  77.         hard: 40000
  78.     depends_on:
  79.       - web
  80.     volumes:
  81.       - upstream:/socket
  82.       - /shared_logs/nginx:/var/log/nginx
  83.       - staticdata:/webconfig/static
  84.       - mediadata:/webconfig/media
  85.     ports:
  86.       - "1080:1080"
  87.  
  88.   admin:
  89.     build: .
  90.     sysctls:
  91.       - net.core.somaxconn=65536
  92.       - net.ipv4.tcp_syncookies=0
  93.     ulimits:
  94.       nproc: 65535
  95.       nofile:
  96.         soft: 20000
  97.         hard: 40000
  98.     volumes:
  99.       - upstream:/socket
  100.       - /shared_logs/uwsgi:/var/log/uwsgi
  101.       - /shared_logs/uwsgi:/code/logs
  102.       - .:/code/webapp/admin
  103.     command: python ./code/webapp/admin/wsgi.py
  104.     depends_on:
  105.       - web
  106.       - db
  107.       - redis
  108.  
  109.     ports:
  110.       - "5199:5190"
  111.  
  112.   partner_plus:
  113.     build: .
  114.     sysctls:
  115.       - net.core.somaxconn=65536
  116.       - net.ipv4.tcp_syncookies=0
  117.     ulimits:
  118.       nproc: 65535
  119.       nofile:
  120.         soft: 20000
  121.         hard: 40000
  122.     volumes:
  123.       - upstream:/socket
  124.       - /shared_logs/uwsgi:/var/log/uwsgi
  125.       - /shared_logs/uwsgi:/code/logs
  126.       - .:/code/webapp/partner_plus
  127.     command: python ./code/webapp/partner_plus/run_server.py
  128.     depends_on:
  129.       - web
  130.       - db
  131.       - redis
  132.     ports:
  133.       - "5002:5001"
  134.   gate:
  135.     build: .
  136.     sysctls:
  137.       - net.core.somaxconn=65536
  138.       - net.ipv4.tcp_syncookies=0
  139.     ulimits:
  140.       nproc: 65535
  141.       nofile:
  142.         soft: 20000
  143.         hard: 40000
  144.     volumes:
  145.       - upstream:/socket
  146.       - /shared_logs/uwsgi:/var/log/uwsgi
  147.       - /shared_logs/uwsgi:/code/logs
  148.       - .:/code/webapp/gate
  149.     command: python ./code/webapp/gate/wsgi.py
  150.     depends_on:
  151.       - web
  152.       - admin
  153.       - db
  154.       - redis
  155.  
  156.   landing:
  157.     build: .
  158.     sysctls:
  159.       - net.core.somaxconn=65536
  160.       - net.ipv4.tcp_syncookies=0
  161.     ulimits:
  162.       nproc: 65535
  163.       nofile:
  164.         soft: 20000
  165.         hard: 40000
  166.     volumes:
  167.       - upstream:/socket
  168.       - /shared_logs/uwsgi:/var/log/uwsgi
  169.       - /shared_logs/uwsgi:/code/logs
  170.       - .:/code/webapp/landing
  171.     command: python ./code/webapp/landing/wsgi.py
  172.     depends_on:
  173.       - web
  174.       - admin
  175.       - db
  176.       - redis
  177.  
  178.  
  179. volumes:
  180.   upstream: {}
  181.   pgdata: {}
  182.   redisdata: {}
  183.   staticdata: {}
  184.   mediadata: {}
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