Advertisement
mattcarrey

docker-compose.yaml

Dec 25th, 2023 (edited)
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. version: "3.8"
  2.  
  3. services:
  4. app:
  5. build:
  6. context: ./
  7. dockerfile: Dockerfile
  8. container_name: program_2-app
  9. restart: always
  10. working_dir: /var/www
  11. volumes:
  12. - ../src:/var/www
  13. nginx:
  14. image: nginx:1.19-alpine
  15. container_name: program_2-nginx
  16. restart: always
  17. ports:
  18. - "8000:80"
  19. volumes:
  20. - ../src:/var/www
  21. - ./nginx:/etc/nginx/conf.d
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement