SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ docker-compose up -d
  2. Creating network "exampleCOM_default" with driver "bridge"
  3. Creating exampleCOMphp-fpm ...
  4. Creating exampleCOMmariadb ... error
  5.  
  6. ERROR: for exampleCOMmariadb  Cannot start service db: driver failed     programming external connectivity on endpoint exampleCOMmariadb     (999572f33113c9fce034b4ed72aaCreating exampleCOMphp-fpm ... done
  7.      
  8. ERROR: for exampleCOMnginx  Cannot start service nginx: driver failed programming external connectivity on endpoint exampleCOMnginx (9dc04f8b06825d7ff535afb1101933be7435c68f4350f845c756fc93e1a0322c): Bind for 0.0.0.0:443 failed: port is already allocated
  9.  
  10. ERROR: for db  Cannot start service db: driver failed programming external connectivity on endpoint exampleCOMmariadb (999572f33113c9fce034b4ed72aa072708f6f477eb2af8ad614c0126ca457b64): Bind for 0.0.0.0:3306 failed: port is already allocated
  11.  
  12. ERROR: for nginx  Cannot start service nginx: driver failed programming external connectivity on endpoint exampleCOMnginx (9dc04f8b06825d7ff535afb1101933be7435c68f4350f845c756fc93e1a0322c): Bind for 0.0.0.0:443 failed: port is already allocated
  13.      
  14. version: '3'
  15.  
  16. services:
  17.     db:
  18.       container_name: ${SITE_NAME}_mariadb
  19.       build:
  20.         context: ./mariadb
  21.       volumes:
  22.           - ./mariadb/scripts:/docker-entrypoint-initdb.d
  23.           - ./.data/db:/var/lib/mysql
  24.           - ./logs/mariadb:/var/log/mysql
  25.       environment:
  26.           MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
  27.           MYSQL_DATABASE: ${MYSQL_DATABASE}
  28.           MYSQL_USER: ${MYSQL_USER}
  29.           MYSQL_PASSWORD: ${MYSQL_PASSWORD}
  30.       ports:
  31.           - '${MYSQL_PORT:-3306}:3306'
  32.       command:
  33.           'mysqld --innodb-flush-method=fsync'
  34.       networks:
  35.         - default
  36.       restart: always
  37.     nginx:
  38.       container_name: ${SITE_NAME}_nginx
  39.       build:
  40.         context: ./nginx
  41.         args:
  42.           - 'php-fpm'
  43.           - '9000'
  44.       volumes:
  45.         - ${APP_PATH}:/var/www/app
  46.         - ./logs/nginx/:/var/log/nginx
  47.       ports:
  48.         - "80:80"
  49.         - "443:443"
  50.       depends_on:
  51.         - php-fpm
  52.       networks:
  53.         - default
  54.       restart: always
  55.     php-fpm:
  56.       container_name: ${SITE_NAME}_php-fpm
  57.       build:
  58.           context: ./php7-fpm
  59.           args:
  60.               TIMEZONE: ${TIMEZONE}
  61.       volumes:
  62.           - ${APP_PATH}:/var/www/app
  63.           - ./php7-fpm/config/php.ini:/usr/local/etc/php/php.ini
  64.       environment:
  65.           DB_HOST: db
  66.           DB_PORT: 3306
  67.           DB_DATABASE: ${MYSQL_DATABASE}
  68.           DB_USERNAME: ${MYSQL_USER}
  69.           DB_PASSWORD: ${MYSQL_PASSWORD}
  70.       networks:
  71.         - default
  72.       restart: always
  73. networks:
  74.   default:
  75.     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