New answers tagged docker-compose
0
votes
Accepted
Nginx blocking static files in docker-compose
i've fixed this by commenting/deleting line in nginx configuration file try_files
#try_files $uri $uri/ =404;
try_files Checks the existence of files in the specified order and uses the first ...
2
votes
Accepted
How to setup reverse dns (rDNS) to my unmanaged vps server
You have to set this up with the hosting provider.
You own the domain names, they own the IP addresses. You can set forward lookups, they have to configure reverse lookups.
However, it you are on a “...
0
votes
docker group gets dropped from 'groups' after some time, and with it, my user's membership
Sharing this since it cost me hours. At the moment when you see the docker group, restart the system. Which you do not like to do when many windows are open and docker containers run. But that made it ...
0
votes
django.db.utils.OperationalError: could not connect to server: Connection refused
You have to enable listen addresses if you are using remote database.
cd /etc/postgresql/12.x/main/
open file named postgresql.conf
sudo nano postgresql.conf
add this line to that file
...
0
votes
Nginx downloads source code instead running it with PHP-FPM over Docker
OK, thanks to first answer, I experimented on that a little. Looked on notes on Nginx FASTCGI notex, the 4th advice to set SCRIPT_FILENAME as in alpine it seems that it's not included
Now it works, ...
0
votes
Nginx downloads source code instead running it with PHP-FPM over Docker
Remove the nested location.
Try:
location /api {
root /var/www;
try_files /www/index.php =404;
include fastcgi_params;
fastcgi_pass php_fpm;
}
0
votes
Accepted
How to create auto redirect to 301 https + proxy_pass in NGINX for one location /
If you want to serve your backend only via HTTPS, then you need to define your backend in HTTPS server block, for example like this:
# HTTP server for redirect
server {
listen 80;
server_name ...
0
votes
In the bind mount "hostPath:containerPath:ro" what dose the ro part do?
ro means read-only:
https://docs.docker.com/engine/reference/run/#volume-shared-filesystems
-v, --volume=[host-src:]container-dest[:<options>]: Bind mount a volume.
The comma-delimited `options` ...
0
votes
Increasing the size of /var/ on centos7
If it is a VM hopefully you can just add one more disk to it and use that space to extend the volume. Here is a description how you can extend: https://www.linuxtechi.com/extend-lvm-partitions/
...
Top 50 recent answers are included
Related Tags
docker-compose × 520docker × 429
nginx × 115
networking × 32
reverse-proxy × 31
linux × 23
php-fpm × 20
docker-swarm × 19
postgresql × 18
mysql × 16
django × 15
wordpress × 13
python × 13
mariadb × 13
nextcloud × 13
ssl × 12
iptables × 12
containers × 12
php × 11
docker-networking × 10
ubuntu × 9
linux-networking × 9
lets-encrypt × 9
docker-machine × 9
debian × 8