forked from pyslackers/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
37 lines (33 loc) · 885 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
version: "3.4"
services:
web:
image: pyslackers/website:dev
build: .
depends_on:
- redis
- postgresql
environment:
REDIS_URL: "redis://redis:6379/0"
DATABASE_URL: "postgresql://${USER}:@postgresql:5432/pyslackers_dev"
SLACK_INVITE_TOKEN: "${SLACK_INVITE_TOKEN}"
SLACK_TOKEN: "${SLACK_TOKEN}"
ports:
- "8000:8000"
volumes:
- "${PWD}:/app"
- tox-data:/app/.tox
command: "/bin/sh -c 'alembic upgrade head && gunicorn pyslackersweb:app_factory --access-logfile - --bind=0.0.0.0:8000 --worker-class=aiohttp.GunicornWebWorker --reload'"
redis:
image: redis:5-alpine
ports:
- 6379:6379
postgresql:
image: postgres:11
ports:
- 5432:5432
environment:
POSTGRES_USER: "${USER}"
POSTGRES_PASSWORD: ""
POSTGRES_DB: "pyslackers_dev"
volumes:
tox-data: {}