-
Notifications
You must be signed in to change notification settings - Fork 3
/
staging.yml
71 lines (68 loc) · 1.63 KB
/
staging.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
version: '3.9'
services:
db:
secrets:
- catalog_db_password
elasticsearch:
environment:
- network.host=_eth0:ipv4_
- discovery.type=zen
- discovery.zen.ping.unicast.hosts=tasks.elasticsearch
django:
build:
args:
RUN_SCRIPT: "./deploy/docker/prod.sh"
context: ./
dockerfile: ./deploy/images/django.Dockerfile
image: comses/catalog/prod:latest
configs:
- source: uwsgi_config
target: /code/deploy/uwsgi/catalog.ini
environment:
DOMAIN_NAME: 'staging-catalog.comses.net'
restart: always
secrets:
- catalog_django_config
volumes:
- static:/catalog/static
- uwsgisocket:/catalog/socket
nginx:
configs:
- source: nginx_conf
target: /etc/nginx/nginx.conf
- source: uwsgi_params
target: /catalog/uwsgi_params
image: nginx:latest
restart: always
volumes:
- uwsgisocket:/catalog/socket
- static:/catalog/static
- ./docker/shared/nginx/logs:/var/log/nginx
command: ["nginx", "-g", "daemon off;"]
deploy:
mode: global
ports:
- "80:80"
depends_on:
- django
solr:
configs:
- source: solr_in_sh
target: /opt/solr/bin/solr.in.sh
configs:
nginx_conf:
file: ./deploy/nginx/catalog-haproxy.conf
solr_in_sh:
file: ./deploy/solr/init.d/solr.in.sh
uwsgi_params:
file: ./deploy/nginx/uwsgi_params
uwsgi_config:
file: ./deploy/uwsgi/catalog.ini
volumes:
uwsgisocket:
driver: local
secrets:
catalog_django_config:
file: ./deploy/conf/config.ini
catalog_db_password:
file: ./deploy/conf/postgres_password