-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
59 lines (59 loc) · 1.29 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
50
51
52
53
54
55
56
57
58
59
version: '2'
services:
db:
image: postgres
environment:
POSTGRES_PASSWORD: secret
cache:
image: redis
restart: on-failure
ipfs:
container_name: "ipfs"
restart: always
image: ipfs/go-ipfs
ports:
- "4001:4001"
- "127.0.0.1:5001:5001"
- "127.0.0.1:8080:8080"
#volumes:
# - ~/.ipfs/:/data/ipfs/
web:
build: .
image: pugdit
#env_file: .env
#command: python manage.py runserver 0.0.0.0:8000
restart: on-failure
command: gunicorn pugdit.wsgi -c pugdit/gunicorn.conf.py
environment:
DATABASE_URL: psql://postgres:secret@db/postgres
REDIS_URL: redis://cache:6379
IPFS_API: http://ipfs:5001
IPFS_URL: http://ipfs:8080
WEB_WORKER: eventlet
DEBUG: "true"
ACCOUNT_EMAIL_VERIFICATION: "none"
volumes:
- ./pugdit:/code/pugdit
ports:
- "8000:8000"
links:
- db
- cache
- ipfs
cli:
image: pugdit
#env_file: .env
entrypoint: python manage.py
environment:
DATABASE_URL: psql://postgres:secret@db/postgres
REDIS_URL: redis://cache:6379
IPFS_API: http://ipfs:5001
IPFS_URL: http://ipfs:8080
DEBUG: "true"
EVENTED: "true"
volumes:
- .:/code
links:
- db
- cache
- ipfs