-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (44 loc) · 1.25 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
version: "3"
services:
db:
container_name: wine_gallery_test_db
image: postgres:10.3
environment:
- POSTGRES_PASSWORD=wine_gallery_test_pass
- POSTGRES_USER=wine_gallery_test_user
- POSTGRES_DB=wine_gallery_test_db
redis:
container_name: wine_gallery_test_redis
image: redis:4.0
celery:
container_name: wine_gallery_test_celery
build: .
command: celery -A core.celery worker -l info
environment:
- DATABASE_URL=postgres://wine_gallery_test_user:wine_gallery_test_pass@db/wine_gallery_test_db
- CELERY_BROKER_URL=redis://redis/
- PRODUCTION=1
# Set the following in your environment or in the ".env" file
- STRIPE_API_KEY
- ALLOWED_HOSTS
- SECRET_KEY
links:
- redis
- db
server:
container_name: wine_gallery_test_server
build: .
command: gunicorn -b 0.0.0.0:8000 core.wsgi --log-file -
environment:
- DATABASE_URL=postgres://wine_gallery_test_user:wine_gallery_test_pass@db/wine_gallery_test_db
- PRODUCTION=1
# Set the following in your environment or in the ".env" file
- STRIPE_API_KEY
- ALLOWED_HOSTS
- SECRET_KEY
ports:
- "8000:8000"
depends_on:
- celery
links:
- db