Open dcaban-dgdeanwork opened 4 years ago
@dcaban-dgdeanwork we also faced the same issue while trying to setup our server.
it turned out that the postgress fails if password is not set This is the new docker-compose.common.yml
db:
image: postgres:9.4
environment:
POSTGRES_HOST_AUTH_METHOD: trust
redis:
image: redis:3
web:
image: crystalnix/omaha-server:dev
privileged: true
ports:
- "9090:80"
environment:
DB_HOST: db
DB_PORT: 5432
DB_USER: postgres
DB_NAME: postgres
DB_PASSWORD: ''
HOST_NAME: '*'
SECRET_KEY: 'SECRET_KEY'
DJANGO_SETTINGS_MODULE: 'omaha_server.settings'
AWS_ACCESS_KEY_ID: 'AWS_ACCESS_KEY_ID'
AWS_SECRET_ACCESS_KEY: 'AWS_SECRET_ACCESS_KEY'
AWS_STORAGE_BUCKET_NAME: 'AWS_STORAGE_BUCKET_NAME'
REDIS_HOST: redis
REDIS_PORT: 6379
OMAHA_SERVER_PRIVATE: 'True'
AWS_ROLE: 'omaha-private'
DB_PUBLIC_USER: 'omaha_public'
DB_PUBLIC_PASSWORD: 'omaha_public_password'
UWSGI_PROCESSES: 10
UWSGI_THREADS: 8
FILEBEAT_HOST: 'localhost'
FILEBEAT_PORT: '9021'
ELK_HOST: ''
ELK_PORT: ''
FILEBEAT_DESTINATION: ''
then
sudo docker-compose up
starts the server
I followed the instructions in the README and running make up results in the following error:
I also tried running make ps to see what was going on and it appears the db service closes as soon as it begins. I'm just trying to setup a local dev server to test this out.
Any ideas?