-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
57 lines (52 loc) · 1.34 KB
/
docker-compose.yaml
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
version: '3'
services:
db:
image: postgres:12
volumes:
- /var/ifbcat/db_data:/var/lib/postgresql/data
restart: always
ports:
- "5433:5432"
env_file:
- ./resources/default.ini
- ./local.ini
web:
build:
context: ./
dockerfile: django.dockerfile
restart:
always
entrypoint: /docker-entrypoint.sh
command: gunicorn --reload ifbcat.wsgi -b 0.0.0.0:8000 --threads 2
environment:
- CI_COMMIT_SHA=$CI_COMMIT_SHA
- CI_COMMIT_DATE=$CI_COMMIT_DATE
env_file:
- ./resources/default.ini
- ./local.ini
volumes:
- /var/ifbcat/static:/code/static
ports:
- "8000:8000"
depends_on:
- db
nginx:
image: nginx:1.19-alpine
volumes:
- ./resources/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- /var/ifbcat/static:/static:ro
ports:
- "8080:8080"
depends_on:
- web
nginx-https:
image: nginx:1.19-alpine
volumes:
- ./resources/nginx-https.conf:/etc/nginx/conf.d/default.conf:ro
- /var/ifbcat/static:/static:ro
- /etc/ssl/certs/wildcard-chained-france-bioinformatique.crt:/wildcard-chained-france-bioinformatique.crt:ro
- /etc/ssl/private/wildcard-france-bioinformatique.key:/wildcard-france-bioinformatique.key:ro
ports:
- "443:8443"
depends_on:
- web