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.

30 lines
600 B

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

Powered by TurnKey Linux.