You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
468 B

  1. version: '3'
  2. services:
  3. db:
  4. image: postgres
  5. restart: always
  6. volumes:
  7. - ./pgdata:/var/lib/postgresql/data
  8. environment:
  9. POSTGRES_PASSWORD: c1secret2qbc
  10. POSTGRES_DB: weontheme
  11. ports:
  12. - 5432:5432
  13. django:
  14. build: ./docker_django
  15. restart: always
  16. volumes:
  17. - /vagrant:/etc/project
  18. ports:
  19. - 80:8000
  20. depends_on:
  21. - db
  22. command: >
  23. sh -c "python manage.py runserver 0.0.0.0:8000"

Powered by TurnKey Linux.