Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3.3'
- networks:
- LEMP:
- services:
- nginx:
- image: nginx:stable-alpine
- ports:
- - "80:80"
- volumes:
- - ./:/dass
- - ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- depends_on:
- - php
- networks:
- - LEMP
- mariaDB:
- image: 'bitnami/mariadb:latest'
- labels:
- kompose.service.type: nodeport
- volumes:
- - 'database:/bitnami'
- restart: always
- ports:
- - "3306:3306"
- depends_on:
- - nginx
- environment:
- - MARIADB_ROOT_PASSWORD=secret
- - MARIADB_HOST=mariadb
- - MARIADB_PORT_NUMBER=3306
- - MARIADB_DATABASE=bre
- - MARIADB_USER=dass
- - MARIADB_PASSWORD=secret
- networks:
- - LEMP
- php:
- image: php:7-fpm
- volumes:
- - ./:/dass
- ports:
- - "9000:9000"
- networks:
- - LEMP
- phpmyadmin:
- image: phpmyadmin/phpmyadmin
- container_name: DASS_phpMyAdmin
- ports:
- - "8183:80"
- environment:
- PMA_ARBITRARY: 1
- depends_on:
- - mariaDB
- networks:
- - LEMP
- composer:
- restart: 'no'
- container_name: DASS_composer
- image: 'composer:latest'
- command: install
- working_dir: /dass/service
- volumes:
- - ./service:/dass/service
- volumes:
- database:
- driver: local
- server {
- listen 80;
- index index.php index.html;
- server_name localhost;
- error_log /var/log/nginx/error.log;
- access_log /var/log/nginx/access.log;
- root /dass;
- location ~ .php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- fastcgi_pass php:9000;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- }
- location /service/ {
- try_files $uri /service/index.php;
- location ~ .php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+.php)(/.+)$;
- fastcgi_pass php:9000;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- }
- }
- }
- project
- - index.html
- - post.html
- - service
- - index.php
Add Comment
Please, Sign In to add comment