Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.4"
- networks:
- thrivein-backend:
- services:
- thrivein-backend:
- image: registry.gitlab.com/thrivein/thrivein-backend
- command: bash -c "python3 manage.py migrate --settings=thrivein.settings.prod && python3 manage.py runserver 0.0.0.0:8000 --settings=thrivein.settings.prod"
- networks:
- - thrivein-backend
- ports:
- - "8000:8000"
- depends_on:
- - psql
- volumes:
- - ./backend:/project/backend
- - ./uploads:/code/uploads
- celery:
- image: registry.gitlab.com/thrivein/thrivein-backend
- environment:
- - DJANGO_SETTINGS_MODULE=thrivein.settings.prod
- command: celery -A thrivein worker -l info
- restart: always
- networks:
- - thrivein-backend
- flower:
- image: registry.gitlab.com/thrivein/thrivein-backend
- environment:
- - DJANGO_SETTINGS_MODULE=thrivein.settings.prod
- command: celery flower -A thrivein --address=0.0.0.0
- restart: always
- networks:
- - thrivein-backend
- ports:
- - 5555:5555
- psql:
- image: mdillon/postgis:10
- environment:
- - POSTGRES_DB=thrivein
- - PGDATA=/var/lib/postgresql/data
- ports:
- - 5432:5432
- networks:
- - thrivein-backend
- volumes:
- - /data/thrivein/psql-10:/var/lib/postgresql/data
- chat:
- image: chat
- command: bash -c "python3 manage.py migrate --settings=thrivein.settings.prod && python3 manage.py run_chat_server --settings=thrivein.settings.prod"
- ports:
- - "5002:5002"
- networks:
- - thrivein-backend
- depends_on:
- - psql
- volumes:
- - ./backend:/project/backend
- chat_dev:
- image: chat_dev
- command: bash -c "python3 manage.py migrate --settings=thrivein.settings.dev && python3 manage.py run_chat_server --settings=thrivein.settings.dev"
- ports:
- - "5003:5003"
- networks:
- - thrivein-backend
- depends_on:
- - psql
- volumes:
- - ./backend:/project/backend
- backend_dev:
- image: registry.gitlab.com/thrivein/thrivein-backend/dev
- command: bash -c "python3 manage.py migrate --settings=thrivein.settings.dev && python3 manage.py runserver 0.0.0.0:8001 --settings=thrivein.settings.dev"
- ports:
- - "8001:8001"
- networks:
- - thrivein-backend
- depends_on:
- - psql
- volumes:
- - ./backend:/project/backend
- celery-dev:
- image: registry.gitlab.com/thrivein/thrivein-backend/dev
- environment:
- - DJANGO_SETTINGS_MODULE=thrivein.settings.dev
- command: celery -A thrivein worker -l info --logfile=/code/some.log
- networks:
- - thrivein-backend
- flower-dev:
- image: registry.gitlab.com/thrivein/thrivein-backend/dev
- environment:
- - DJANGO_SETTINGS_MODULE=thrivein.settings.dev
- command: celery flower -A thrivein --address=0.0.0.0
- networks:
- - thrivein-backend
- ports:
- - 5555:5555
Add Comment
Please, Sign In to add comment