forked from neurostuff/neurostore
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
45 lines (42 loc) · 968 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
38
39
40
41
42
43
44
45
version: "2"
services:
neurostuff:
restart: always
build: ./neurostuff
expose:
- "8000"
volumes:
- ./postgres/migrations:/migrations
- ./:/neurostuff
command: /usr/local/bin/gunicorn -w 2 -b :8000 neurostuff.core:app --log-level debug --timeout 120
env_file:
- .env
nginx:
restart: always
build: ./nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/certs:/etc/letsencrypt
- ./nginx/certs-data:/data/letsencrypt
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/sites-enabled:/etc/nginx/sites-enabled:ro
volumes_from:
- neurostuff
postgres:
restart: always
build: ./postgres
volumes:
- postgres_data:/var/lib/postgresql/data
expose:
- '5432'
environment:
- POSTGRES_DB=neurostuff
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
env_file:
- .env
volumes:
certs:
certs-data:
postgres_data: