The backend app of Project Amber, a task list app
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.

docker-compose.yml 958B

1234567891011121314151617181920212223242526272829303132333435363738
  1. version: "3"
  2. volumes:
  3. postgres:
  4. services:
  5. amber:
  6. build: .
  7. restart: always
  8. # You'll likely need to add other drivers, like mysql-connector-python, to
  9. # connect to databases other than the default SQLite and PostgreSQL. See:
  10. # https://docs.sqlalchemy.org/en/13/core/engines.html#database-urls
  11. environment:
  12. - AMBER_DATABASE=postgres://amber:CHANGEME@database:5432/amber
  13. - AMBER_LOGLEVEL=2
  14. - AMBER_ALLOW_SIGNUP=0
  15. - UWSGI_PORT=8080
  16. - UWSGI_PROCESSES=1
  17. - UWSGI_THREADS=2
  18. depends_on:
  19. - database
  20. database:
  21. image: postgres:11-alpine
  22. restart: always
  23. environment:
  24. - POSTGRES_DB=amber
  25. - POSTGRES_USER=amber
  26. - POSTGRES_PASSWORD=CHANGEME
  27. volumes:
  28. - postgres:/var/lib/postgresql/data
  29. web:
  30. image: nginx:1.16-alpine
  31. ports:
  32. - 80:80
  33. depends_on:
  34. - amber
  35. volumes:
  36. - ./doc/nginx.conf.example:/etc/nginx/conf.d/default.conf:ro