Advertisement
gray_beard

docker-compose.yaml

Apr 16th, 2022
973
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.65 KB | None | 0 0
  1. version: '3.8'
  2.  
  3. services:
  4.   db:
  5.     image: postgres:13.0-alpine
  6.     volumes:
  7.       - /var/lib/postgresql/data/
  8.     env_file:
  9.       - ./.env
  10.   web:
  11.     image: olegpletnev/yamdb_final:latest
  12.     restart: always
  13.     volumes:
  14.       - static_value:/app/static/
  15.       - media_value:/app/media/
  16.     depends_on:
  17.       - db
  18.     env_file:
  19.       - ./.env
  20.  
  21.   nginx:
  22.     image: nginx:1.21.3-alpine
  23.     ports:
  24.       - "80:80"
  25.     volumes:
  26.       - ./nginx/default.conf:/etc/nginx/conf.d/default.conf
  27.       - static_value:/var/html/static/
  28.       - media_value:/var/html/media/
  29.     depends_on:
  30.       - web
  31.  
  32. volumes:
  33.   static_value:
  34.   media_value:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement