docker-compose.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This compose setup is only meant for local development of Misago itself
  2. # This is not for running your Misago site in docker
  3. version: "3.0"
  4. services:
  5. postgres:
  6. image: postgres:10
  7. environment:
  8. - POSTGRES_USER=misago
  9. - POSTGRES_PASSWORD=misago
  10. ports:
  11. - '127.0.0.1:5432:5432'
  12. misago:
  13. build: .
  14. command: python manage.py runserver 0.0.0.0:8000
  15. environment:
  16. # Name of development project
  17. - PROJECT_NAME=devproject
  18. # Postgres
  19. - POSTGRES_USER=misago
  20. - POSTGRES_PASSWORD=misago
  21. - POSTGRES_DB=misago
  22. - POSTGRES_HOST=postgres
  23. - POSTGRES_TEST_DB=misago_test
  24. # Superuser
  25. - SUPERUSER_USERNAME=Admin
  26. - SUPERUSER_EMAIL=admin@example.com
  27. - SUPERUSER_PASSWORD=password
  28. ports:
  29. # Map port 8000 in the container to port 8000 on the host
  30. # This way we can access the forum through http://localhost:8000
  31. - "8000:8000"
  32. depends_on:
  33. - postgres
  34. tty: true
  35. volumes:
  36. # Map in the entire project into the container
  37. # This makes sure files in the container updates on the fly as we were working locally
  38. - .:/srv/misago:Z