Advertisement
Guest User

Untitled

a guest
Feb 6th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.69 KB | None | 0 0
  1. version: "2"
  2. networks:
  3.   elk:
  4.     external: true
  5. services:
  6.   fight:
  7.     restart: on-failure
  8.     image: my_image
  9.     user: "0:33"
  10.     ports:
  11.    - 8010:8000
  12.     extends:
  13.       file: base.yml # тут переменные окружения
  14.       service: base
  15.     networks:
  16.    - elk
  17.     links:
  18.    - redis
  19.     depends_on:
  20.    - redis
  21.     volumes:
  22.    - # volume1
  23.     - # volume2
  24.     - # volume3
  25.     command: ["daphne", "-p", "8000", "-e", "ssl:443:privateKey=static/privkey.pem:certKey=static/fullchain.pem", "config.asgi:application"]
  26.     #command: ["uwsgi", "--http", ":8000", "--processes", "2", "--threads", "2", "--wsgi-file", "config/wsgi.py"]
  27.   redis:
  28.     image: "redis:alpine"
  29.     networks:
  30.    - elk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement