Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: "3.6"
- 1
- 2 services:
- 3 redis:
- 4 image: redis:alpine
- 5 container_name: redis_jerry
- 6 volumes:
- 7 - redis-box:/etc/redis/data
- 8 ports:
- 9 - "6379"
- 10 db:
- 11 image: postgres:10.3-alpine
- 12 environment:
- 13 POSTGRES_DB: jerryR_db
- 14 POSTGRES_USER: jR
- 15 POSTGRES_PASSWORD: jR
- 16 container_name: psql_jerry
- 17 volumes:
- 18 - db-databox:/var/lib/postgresql/data
- 19 ports:
- 20 - "5432"
- 21 nginx-jerry:
- 22 image: nginx:alpine
- 23 container_name: nginx_jerry_local
- 24 ports:
- 25 - "8000:8000"
- 26 restart: always
- 27 volumes:
- 28 - nginx-conf:/etc/nginx/nginx.conf
- 29 - ssl-box:/etc/ssl/data
- 30 command: [nginx-debug,'-g','daemon off;']
- 31 jerry-app:
- 32 build: .
- 33 container_name: jerry_app
- 34 command: bash -c "python manage.py makemigrations && python manage.py migrate && gunicorn jerryTail.wsgi -b {linode}:8000"
- 35 depends_on:
- 36 - db
- 37 - redis
- 38 volumes:
- 39 - dev_rP:/code/
- 40 ports:
- 41 - "8000:8000"
- 42 volumes:
- 43 redis-box:
- 44 db-databox:
- 45 nginx-conf:
- 46 ssl-box:
- 47 dev_rP:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement