Docker Compose =============================== ******************************************************************************** ## General Docker Compose ******************************************************************************** redmine: command: bash -c "service mysql start && service apache2 start && bash" image: ubuntu/redmine:timer_and_editor ports: - 1396:80 volumes: - ./redmine/files:/usr/src/redmine/files - ./redmine/mysql:/var/lib/mysql tty: true apache: image: ubuntu/apache command: bash -c "service apache2 start && bash" ports: - 1394:80 volumes: - ./images:/var/www/html/ tty: true wordpress: image: ubuntu/apache:wordpressLast command: bash -c "service apache2 start && bash" ports: - 1395:80 volumes: - ./htdocs/wordpress:/var/www/html/wp-content/ tty: true geoServer: image: ubuntu:geoserver volumes: - /home/sinic/GisLayers:/root ports: - 8080:8080 tty: true nginx: image: nginx volumes: - ./nginx.hosts:/etc/nginx/conf.d/default.conf ports: - "80:80" environment: - NGINX_HOST=sinic.ir - NGINX_PORT=80 peymano: image: ubuntu/apache:wordpressLast command: bash -c "service apache2 start && bash" ports: - 9090:80 volumes: - ./htdocs/peymano:/var/www/html/wp-content/ tty: true revalsaz: image: ubuntu/apache:wordpressLast command: bash -c "service apache2 start && bash" ports: - 7070:80 volumes: - ./htdocs/revalsaz:/var/www/html/wp-content/ tty: true jsreport: image: ubuntu/npm_3_5_2:950621 #command: bash -c "NODE_ENV=production forever server.js && bash" ports: - 3300:3300 - 3100:3100 volumes: - ./jsreport:/data working_dir: /data tty: true ******************************************************************************** ## Database Docker Compose ******************************************************************************** mongodb: image: tutum/mongodb:3.2 volumes: - ./mongodb_data:/data/db environment: - AUTH=no net: "host" mongodb_old: image: tutum/mongodb:3.2 volumes: - ./mongodb_old_data:/data/db environment: - AUTH=no - STORAGE_ENGINE=mmapv1 ports: - 27117:27017 - 28117:28017 mysql: image: mysql net: "host" volumes: - ./mysql_data:/var/lib/mysql environment: - MYSQL_ROOT_PASSWORD=zanjan - MYSQL_DATABASE=wordpress mongodb_replicate: image: tutum/mongodb:3.2 volumes: - ./mongodb_replicate:/data/db environment: - AUTH=no ports: - 27217:27017 - 28217:28017 ******************************************************************************** ## NodeJs Docker Compose ******************************************************************************** investment: image: ubuntu/npm_3_5_2:950621 ports: - 3101:8443 environment: - DB_1_PORT_27017_TCP_ADDR=172.17.0.1 volumes: - ./investment:/data working_dir: /data tty: true aqc: image: ubuntu/npm_3_5_2:950621 ports: - 3102:8443 environment: - DB_1_PORT_27017_TCP_ADDR=172.17.0.1 volumes: - ./aqc:/data working_dir: /data tty: true real-estate: image: ubuntu/npm_3_5_2:950621 ports: - 3103:8443 environment: - DB_1_PORT_27017_TCP_ADDR=172.17.0.1 volumes: - ./real-estate:/data working_dir: /data tty: true urban-management: image: ubuntu/npm_3_5_2:950621 ports: - 3104:8443 - 3000:3000 environment: - DB_1_PORT_27017_TCP_ADDR=172.17.0.1:27117 volumes: - ./urban-management:/data working_dir: /data tty: true zcad: image: ubuntu/npm_3_5_2:950621 command: bash -c "NODE_ENV=production forever server.js && bash" ports: - 3105:8443 environment: - DB_1_PORT_27017_TCP_ADDR=172.17.0.1 volumes: - ./zcad:/data working_dir: /data tty: true roadcad: image: ubuntu/npm_3_5_2:950621 command: bash -c "NODE_ENV=production forever server.js && bash" ports: - 3106:8443 environment: - DB_1_PORT_27017_TCP_ADDR=172.17.0.1 volumes: - ./road-cadastre:/data working_dir: /data tty: true MineEngine: image: ubuntu/node0.10 #command: bash -c "NODE_ENV=production forever server.js && bash" ports: - 3107:8443 - 442:442 - 443:443 environment: - DB_1_PORT_27017_TCP_ADDR=172.17.0.1 volumes: - ./MineEngine:/data working_dir: /data tty: true ******************************************************************************** _BY: Farid Ahmadian_ _TAG: docker, docker-compose_ _DATE: 2016-09-1 10:36:53_