Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.29 KB | None | 0 0
  1. version: '3.1'
  2. services:
  3.   nginx:
  4.     image: nginx
  5.     ports:
  6.      - 80:80
  7.     volumes:
  8.      - ./backend:/backend
  9.       - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
  10.   php:
  11.     build: ./
  12.     image: php:7.2-fpm-alpine
  13.     volumes:
  14.      - ./backend:/backend
  15.   pgsql:
  16.     image: postgres
  17.     restart: always
  18.     ports:
  19.        - 5432:5432
  20.     environment:
  21.         POSTGRES_USER: developer
  22.         POSTGRES_PASSWORD: uVK4PBfdNBncWLbmZMKG
  23.         POSTGRES_DB: chat
  24.  
  25.   adminer:
  26.     image: adminer
  27.     restart: always
  28.     ports:
  29.      - 81:8080
  30.  
  31.   redis:
  32.     image: redis
  33.     ports:
  34.      - "6379:6379"
  35.     volumes:
  36.      - ./redis:/data
  37.     entrypoint: redis-server --appendonly yes
  38.     restart: always
  39.  
  40.   rabbitmq1:
  41.     image: rabbitmq:3-management
  42.     hostname: rabbitmq1
  43.  
  44.   node:
  45.     image: "node:8"
  46.     user: "node"
  47.     working_dir: /home/node/app
  48.     environment:
  49.      - NODE_ENV=production
  50.     volumes:
  51.      - ./:/home/node/app
  52.     expose:
  53.      - "8081"
  54.     command: "npm start"
  55.  
  56.   composer:
  57.     restart: 'no'
  58.     image: prooph/composer:7.2
  59.     #also can use follow command:
  60.     #docker run --rm -v $(pwd):/app prooph/composer:7.2 install
  61.     #TODO fix to automatic upload
  62.     command: "composer install"
  63.     volumes:
  64.      - ./backend:/backend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement