#RUN cd /opt/TimeSide; python setup.py develop
# Sandbox setup
-RUN /opt/TimeSide/examples/sandbox/manage.py syncdb --noinput && \
- /opt/TimeSide/examples/sandbox/manage.py migrate --noinput && \
- /opt/TimeSide/examples/sandbox/manage.py collectstatic --noinput
+# RUN /opt/TimeSide/examples/sandbox/manage.py syncdb --noinput && \
+# /opt/TimeSide/examples/sandbox/manage.py migrate --noinput && \
+# /opt/TimeSide/examples/sandbox/manage.py collectstatic --noinput
EXPOSE 8000
environment:
- MYSQL_ROOT_PASSWORD=mysecretpassword
- MYSQL_DATABASE=timeside
- - MYSQL_USER=timeside
- - MYSQL_PASSWORD=changeme
+ - MYSQL_USER=root
+ - MYSQL_PASSWORD=mysecretpassword
rabbitmq:
image: rabbitmq:3-management
command: /bin/sh /opt/TimeSide/examples/deploy/celery_app.sh
links:
- rabbitmq
- - app
- db
nginx:
sandbox_dir='/home/timeside/'
manage=$sandbox_dir'manage.py'
+python $manage syncdb --noinput
python $manage migrate --noinput
+python $manage collectstatic --noinput
+python $manage timeside-create-admin-user
# Starting celery worker with the --autoreload option will enable the worker to watch for file system changes
# This is an experimental feature intended for use in development only
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
# 'NAME': os.path.join(PROJECT_ROOT, 'timeside.sql'), # Or path to database file if using sqlite3.
'NAME': 'timeside', # Or path to database file if using sqlite3.
- 'USER': 'timeside', # Not used with sqlite3.
- 'PASSWORD': 'changeme', # Not used with sqlite3.
- 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
- 'PORT': '', # Set to empty string for default. Not used with sqlite3.
+ 'USER': 'root', # Not used with sqlite3.
+ 'PASSWORD': 'mysecretpassword', # Not used with sqlite3.
+ 'HOST': 'db', # Set to empty string for localhost. Not used with sqlite3.
+ 'PORT': '3306', # Set to empty string for default. Not used with sqlite3.
# 'OPTIONS': {
# 'timeout': 60,
# }