docker-compose.yml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. version: '2'
  2. services:
  3. nginx:
  4. build: nginx
  5. ports:
  6. - "8000:80"
  7. volumes:
  8. - /etc/localtime:/etc/localtime:ro
  9. - ./html:/usr/share/nginx/html
  10. # Fancy! Using sockets to connect to php-fpm! :D
  11. - ./socks:/socks
  12. - ./nginx.conf:/etc/nginx/http.d/default.conf:ro
  13. # - ./more.conf:/etc/nginx/modules/more.conf:ro
  14. # restart: always
  15. php:
  16. build: php-image
  17. volumes:
  18. - ./socks:/socks
  19. - /etc/localtime:/etc/localtime:ro
  20. - ./html:/usr/share/nginx/html
  21. # restart: always
  22. # db:
  23. # image: postgres:11-alpine
  24. # volumes:
  25. # - ./pg_data:/var/lib/postgresql/data
  26. # - /etc/localtime:/etc/localtime:ro
  27. # environment:
  28. # POSTGRES_PASSWORD: easy4me2remember
  29. # POSTGRES_DB: mediawiki
  30. # POSTGRES_USER: mediawiki
  31. # user: "1000:1000"
  32. redis:
  33. image: redis:5-alpine
  34. volumes:
  35. - /etc/localtime:/etc/localtime:ro
  36. - ./redis:/data
  37. command: ["redis-server", "--appendonly", "yes"]
  38. user: "1000:1000"