/
docker-compose.yml
94 lines (88 loc) · 2.05 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '3.4'
services:
fi_admin:
container_name: fi-admin
restart: unless-stopped
build:
context: .
target: prod
image: ${IMAGE_TAG}
expose:
- 8000
volumes:
- ${LOG_PATH}:/logs
- ${UPLOAD_PATH}:/app/uploads
- ./bireme/fixtures/import/:/app/fixtures/import
- static_files:/app/static_files
env_file:
- ./conf/app-env
command: gunicorn --bind 0.0.0.0:8000 fi-admin.wsgi ${GUNICORN_PARAMS}
networks:
- nginx-proxy
deploy:
resources:
limits:
memory: ${MEMORY_APP_LIMIT}
reservations:
memory: ${MEMORY_APP_RESERVATION}
www-static:
container_name: fi-admin-www-static
restart: unless-stopped
image: nginx:1.18-alpine
expose:
- 80
volumes:
- ./conf/nginx/app:/etc/nginx/conf.d
- static_files:/app/static_files
depends_on:
- fi_admin
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST}
networks:
- nginx-proxy
deploy:
resources:
limits:
memory: ${MEMORY_WEBSERVER_LIMIT}
reservations:
memory: ${MEMORY_WEBSERVER_RESERVATION}
www-docs:
container_name: fi-admin-www-docs
restart: unless-stopped
image: nginx:1.18-alpine
expose:
- 80
volumes:
- ./conf/nginx/docs:/etc/nginx/conf.d
- ${UPLOAD_PATH}:/app/uploads
depends_on:
- fi_admin
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST_DOCS}
- LETSENCRYPT_HOST=${LETSENCRYPT_HOST_DOCS}
networks:
- nginx-proxy
deploy:
resources:
limits:
memory: ${MEMORY_WEBSERVER_LIMIT}
reservations:
memory: ${MEMORY_WEBSERVER_RESERVATION}
cron:
container_name: fi-admin-cron
restart: unless-stopped
image: ${IMAGE_TAG}
volumes:
- ${LOG_PATH}:/logs
depends_on:
- fi_admin
env_file:
- ./conf/app-env
user: root
command: crond -f -L /dev/stdout
networks:
nginx-proxy:
external: true
volumes:
static_files: