docker-compose.yml 849 B

1234567891011121314151617181920212223242526272829303132
  1. # WARNING: This is a DEVELOPMENT docker-compose file, it should not be used for production.
  2. version: "2"
  3. services:
  4. app:
  5. image: jc21/nginx-proxy-manager-base:latest
  6. ports:
  7. - 8080:80
  8. - 8081:81
  9. - 8443:443
  10. environment:
  11. - NODE_ENV=development
  12. - FORCE_COLOR=1
  13. volumes:
  14. - ./data/letsencrypt:/etc/letsencrypt
  15. - .:/app
  16. - ./rootfs/etc/nginx:/etc/nginx
  17. working_dir: /app
  18. depends_on:
  19. - db
  20. links:
  21. - db
  22. command: node --max_old_space_size=250 --abort_on_uncaught_exception node_modules/nodemon/bin/nodemon.js
  23. db:
  24. image: mariadb:10.3.7
  25. environment:
  26. MYSQL_ROOT_PASSWORD: "npm"
  27. MYSQL_DATABASE: "npm"
  28. MYSQL_USER: "npm"
  29. MYSQL_PASSWORD: "npm"
  30. volumes:
  31. - ./config/my.cnf:/etc/mysql/conf.d/npm.cnf
  32. - ./data/mysql:/var/lib/mysql