mounted codebase
Ubuntu 16.04
```Containers: 21
Running: 6
Paused: 0
Stopped: 15
Images: 24
Server Version: 1.13.1
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 277
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
runc version: N/A (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
init version: N/A (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.10.0-35-generic
Operating System: Ubuntu 17.04
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 15.56 GiB
Name: fede-linux
ID: AV6S:CASJ:AFCS:DEJ6:233H:2VN5:4JBX:VVQM:CI7J:ACXE:X35U:4RY2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
### Docker compose file
```version: "2"
services:
mariadb:
image: wodby/mariadb:10.2-3.0.2
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: drupal
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
php:
image: wodby/drupal-php:7.1-3.3.1
environment:
PHP_SENDMAIL_PATH: /usr/sbin/sendmail -t -i -S mailhog:1025
PHP_FPM_CLEAR_ENV: "no"
DB_HOST: mariadb
DB_USER: drupal
DB_PASSWORD: drupal
DB_NAME: drupal
DB_DRIVER: mysql
volumes:
- ./drupal:/var/www/html
nginx:
image: wodby/drupal-nginx:8-1.13-3.0.2
depends_on:
- php
environment:
NGINX_STATIC_CONTENT_OPEN_FILE_CACHE: "off"
NGINX_ERROR_LOG_LEVEL: debug
NGINX_BACKEND_HOST: php
NGINX_SERVER_ROOT: /var/www/html
volumes:
- ./drupal:/var/www/html
labels:
- 'traefik.backend=nginx'
- 'traefik.port=80'
- 'traefik.frontend.rule=Host:drupal.docker.localhost'
mailhog:
image: mailhog/mailhog
labels:
- 'traefik.backend=mailhog'
- 'traefik.port=8025'
- 'traefik.frontend.rule=Host:mailhog.drupal.docker.localhost'
portainer:
image: portainer/portainer
command: --no-auth -H unix:///var/run/docker.sock
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- 'traefik.backend=portainer'
- 'traefik.port=9000'
- 'traefik.frontend.rule=Host:portainer.drupal.docker.localhost'
traefik:
image: traefik
command: -c /dev/null --web --docker --logLevel=INFO
ports:
- '8000:80'
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
codebase:
So my codebase is in the drupal folder where i simply untarred the last version of d7.
nginx_1 | 172.24.0.2 - - [01/Feb/2018:09:27:12 +0000] "GET /index.php HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
nginx_1 | 172.24.0.2 - - [01/Feb/2018:09:27:12 +0000] "GET /install.php HTTP/1.1" 404 136 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
nginx_1 | 172.24.0.2 - - [01/Feb/2018:09:33:07 +0000] "GET /install.php HTTP/1.1" 404 136 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0"
php_1 | 172.24.0.7 - 01/Feb/2018:09:27:12 +0000 "GET /index.php" 302
What i am surprised is the 404 is not mentioned?
then i ssh:d into nginx and found out this in /etc/nginx/conf.d/drupal.conf
location = /core/install.php {
fastcgi_pass php;
}
but as i'm running d7, install.php is not in the core folder. Is there a way to edit the drupal.conf file so that i could pass that? :)
thanks
Well, if you run Drupal 7 then you should use Nginx for Drupal 7, e.g. use 7-1.13-3.0.2 instead of 8- 1.13-3.0.2 for wodby/drupal-nginx
yes! that was the error :) sorry i didn't notice that.
thanks a lot for your help!!
Most helpful comment
Well, if you run Drupal 7 then you should use Nginx for Drupal 7, e.g. use
7-1.13-3.0.2instead of8- 1.13-3.0.2forwodby/drupal-nginx