volume  ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]
 user postgres
 run /etc/init.d/postgresql start &&\
-       psql --command "CREATE USER docker WITH SUPERUSER PASSWORD 'docker';" &&\
-       createdb -O docker docker
+       psql --command "CREATE USER docker WITH SUPERUSER; &&\
+       psql --command "ALTER USER WITH PASSWORD 'docker';" &&\
+       psql --command "CREATE DATABASE timeside;" &&\
+       psql --command "ALTER DATABASE timeside OWNER TO docker;"
 user root
 
 # setup all the configfiles
 
 DATABASES = {
     'default': {
         'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
-        'NAME': 'docker', # Or path to database file if using sqlite3.
+        'NAME': 'timeside', # Or path to database file if using sqlite3.
         'USER': 'docker',                      # Not used with sqlite3.
         'PASSWORD': 'docker',                  # Not used with sqlite3.
         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.