docker-compose.yaml 1.1 KB

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