docker-compose.yaml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. # Postgres
  17. - POSTGRES_USER=misago
  18. - POSTGRES_PASSWORD=misago
  19. - POSTGRES_DB=misago
  20. - POSTGRES_HOST=postgres
  21. - POSTGRES_TEST_DB=misago_test
  22. # Superuser
  23. - SUPERUSER_USERNAME=Admin
  24. - SUPERUSER_EMAIL=admin@example.com
  25. - SUPERUSER_PASSWORD=password
  26. ports:
  27. # Map port 8000 in the container to port 8000 on the host
  28. # This way we can access the forum through http://localhost:8000
  29. - "8000:8000"
  30. depends_on:
  31. - postgres
  32. tty: true
  33. volumes:
  34. # Map in the entire project into the container
  35. # This makes sure files in the container updates on the fly as we were working locally
  36. - .:/srv/misago:Z