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.

29 lines
554 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. command: >
  16. sh -c "python manage.py wait_for_db &&
  17. python manage.py migrate &&
  18. python manage.py runserver 0.0.0.0:8000"
  19. restart: always
  20. volumes:
  21. - /vagrant:/etc/project
  22. ports:
  23. - 80:8000
  24. depends_on:
  25. - db

Powered by TurnKey Linux.