Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: '3'
- services:
- db:
- image: postgres:latest
- container_name: rapid_goat_postgres_server_1
- nginx:
- image: nginx:latest
- container_name: rapid_goat_nginx_1
- ports:
- - "8081:8081"
- volumes:
- - .:/code
- - ./nginx:/etc/nginx/conf.d
- - /static:/static
- depends_on:
- - web
- web:
- build: .
- container_name: rapid_goat_django
- command: bash -c "chmod -R 755 . && cd rapidgoat_scraper_product && python3 manage.py collectstatic --noinput && python3 manage.py makemigrations && python3 manage.py migrate && gunicorn rapidgoat_scraper.wsgi:application -b 0.0.0.0:8000"
- volumes:
- - .:/code
- ports:
- - "8000:8000"
- depends_on:
- - db
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement