]> git.parisson.com Git - diggersdigest.git/commitdiff
Fix ports and various settings
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 26 Oct 2017 12:57:53 +0000 (12:57 +0000)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 26 Oct 2017 12:57:53 +0000 (12:57 +0000)
app/deploy/nginx-app.conf
app/diggersdigest/local_settings.py
docker-compose.yml

index df8bc0a091d799ce99ca575516fc4ee3c782fcb9..f4db2e75963236ebbd2eb00acbfad05a7148dceb 100644 (file)
@@ -2,7 +2,7 @@ server_tokens off;
 
 server {
        listen 80;
-       server_name nginx;
+       server_name nginx www.diggersdigest.com diggersdigest.com;
        charset utf-8;
 
        access_log /var/log/nginx/app-access.log;
@@ -14,12 +14,12 @@ server {
        # Django media
        location /media {
                        alias /opt/media; # your Django project's media files - amend as required
-                autoindex on;
+                #autoindex on;
        }
        # Django static
        location /static {
                alias /opt/static; # your Django project's static files - amend as required
-               autoindex on;
+               #autoindex on;
        }
 
        location / {
index b4b08bd2f2dbf97aea09b88f38fd3a1f0f30fb16..ceadb91ba5cdabbde3f31bb3cbd4cdc656a93532 100644 (file)
@@ -9,8 +9,8 @@ DATABASES = {
     'default': {
         'ENGINE': 'django.db.backends.mysql',
         'NAME': 'diggersdigest',
-        'USER': 'digger',
-        'PASSWORD': 'admin',
+        'USER': 'root',
+        'PASSWORD': 'ejkinBukdin1',
         'HOST': 'db',
         'PORT': 3306,
     }
index 1df50442551c9245c838b1e11fafe6f6818189f4..574da6aa875c7e7ac5d80af7f7d9d4b797cb0db9 100644 (file)
@@ -10,8 +10,8 @@ db:
   environment:
     - MYSQL_ROOT_PASSWORD=mysecretpassword
     - MYSQL_DATABASE=diggersdigest
-    - MYSQL_USER=digger
-    - MYSQL_PASSWORD=admin
+    - MYSQL_USER=root
+    - MYSQL_PASSWORD=ejkinBukdin1
   volumes:
     - ./mysql/:/var/lib/mysql
 
@@ -22,15 +22,13 @@ app:
     - ./app/:/opt/app
   volumes_from:
     - media
-  ports:
-    - "8000:8000"
   links:
     - db
 
 nginx:
   image: nginx
   ports:
-    - "80:80"
+    - "8001:80"
   volumes:
     - ./app/deploy/nginx-app.conf:/etc/nginx/conf.d/default.conf
     - ./log/:/var/log/nginx