mirror of
https://github.com/LukeHagar/pypistats.org.git
synced 2025-12-06 04:21:09 +00:00
* Show required vs optional deps `pip install x` does not install extras dependencies by default, so we'll show them in a separate list. This is particularly useful for packages which have many optional integrations, or which track development dependencies using package extras. * some cleanup Co-authored-by: flynn <crf204@gmail.com>
93 lines
1.7 KiB
YAML
93 lines
1.7 KiB
YAML
x-envs: &envs
|
|
environment:
|
|
- FLASK_APP=pypistats/run.py
|
|
- FLASK_ENV=development
|
|
- FLASK_DEBUG=1
|
|
- POSTGRESQL_HOST=postgresql
|
|
- POSTGRESQL_PORT=5432
|
|
- POSTGRESQL_USERNAME=admin
|
|
- POSTGRESQL_PASSWORD=root
|
|
- POSTGRESQL_DBNAME=pypistats
|
|
- CELERY_BROKER_URL=redis://redis
|
|
- BASIC_AUTH_USER=user
|
|
- BASIC_AUTH_PASSWORD=password
|
|
|
|
version: "3.4"
|
|
|
|
volumes:
|
|
pgdata: {}
|
|
|
|
services:
|
|
web:
|
|
build:
|
|
context: .
|
|
image: web
|
|
command: webdev
|
|
depends_on:
|
|
- postgresql
|
|
<<: *envs
|
|
ports:
|
|
- "5000:5000"
|
|
volumes:
|
|
- "./pypistats/:/app/pypistats/"
|
|
beat:
|
|
image: web
|
|
command: beat
|
|
depends_on:
|
|
- redis
|
|
<<: *envs
|
|
volumes:
|
|
- "./pypistats/:/app/pypistats/"
|
|
celery:
|
|
image: web
|
|
command: celery
|
|
depends_on:
|
|
- redis
|
|
- postgresql
|
|
<<: *envs
|
|
volumes:
|
|
- "./pypistats/:/app/pypistats/"
|
|
flower:
|
|
image: web
|
|
command: flower
|
|
depends_on:
|
|
- redis
|
|
<<: *envs
|
|
ports:
|
|
- "5555:5555"
|
|
volumes:
|
|
- "./pypistats/:/app/pypistats/"
|
|
migrate:
|
|
image: web
|
|
command: migrate
|
|
depends_on:
|
|
- postgresql
|
|
<<: *envs
|
|
volumes:
|
|
- "./pypistats/:/app/pypistats/"
|
|
- "./migrations/:/app/migrations/"
|
|
seeds:
|
|
image: web
|
|
command: seeds
|
|
depends_on:
|
|
- postgresql
|
|
- migrate
|
|
<<: *envs
|
|
volumes:
|
|
- "./pypistats/:/app/pypistats/"
|
|
- "./migrations/:/app/migrations/"
|
|
redis:
|
|
image: "redis:5.0.7-alpine"
|
|
ports:
|
|
- "6379:6379"
|
|
postgresql:
|
|
image: "postgres:12"
|
|
environment:
|
|
- POSTGRES_USER=admin
|
|
- POSTGRES_PASSWORD=root
|
|
- POSTGRES_DB=pypistats
|
|
ports:
|
|
- "5433:5432"
|
|
volumes:
|
|
- "pgdata:/var/lib/postgresql/data"
|