-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
75 lines (68 loc) · 1.48 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
postgres_data:
image: busybox
volumes:
- /var/lib/postgres
command: /bin/sh
postgres:
image: postgres:9.4
volumes_from:
- postgres_data
env_file: .env
expose:
- "5432"
uwsgi:
build: .
restart: always
volumes:
- .:/app
- /var/www/static
links:
- postgres
- redis
env_file: .env
command: /app/uwsgi.sh
expose:
- "4000"
working_dir: /app
nginx:
build: .
dockerfile: Dockerfile_nginx
volumes_from:
- uwsgi
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./uwsgi_params.par:/etc/nginx/uwsgi_params.par:ro
- .ssl/nginx.crt:/etc/nginx/nginx.crt
- .ssl/nginx.key:/etc/nginx/nginx.key
- /var/www/.well-known/acme-challenge/
- .ssl/:/etc/letsencrypt/openfmri.org/
links:
- uwsgi
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
redis:
restart: always
image: redis
links:
- postgres
worker:
build: .
command: celery worker -B -A open_fmri -Q default -n default@%h --loglevel=debug
env_file: .env
volumes:
- .:/app
volumes_from:
- uwsgi
links:
- postgres
- redis
working_dir: /app
opensmtpd:
build: ./opensmtpd/
volumes:
- ./opensmtpd/smtpd.conf:/etc/smtpd.conf
- ./opensmtpd/forward:/etc/.forward
- ./opensmtpd/credentials:/etc/.credentials
ports:
- "0.0.0.0:25:25"