-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose-production.yaml
120 lines (111 loc) · 2.6 KB
/
compose-production.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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: production
services:
redisai:
image: redis:latest
restart: always
labels:
com.centurylinklabs.watchtower.enable: "true"
memcached:
image: memcached:1
restart: always
command: -I 32m
labels:
com.centurylinklabs.watchtower.enable: "true"
opensearch:
build:
context: .
dockerfile: ./search/config/Dockerfile
restart: always
environment:
- "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"
- "DISABLE_INSTALL_DEMO_CONFIG=true"
volumes:
- ./search/config/opensearch.yml:/usr/share/opensearch/config/opensearch.yml
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 65536
labels:
com.centurylinklabs.watchtower.enable: "true"
db:
image: postgres:14
restart: always
volumes:
- db_data:/var/lib/postgresql/data
env_file:
- ./.production_db.env
labels:
com.centurylinklabs.watchtower.enable: "true"
search:
image: arthistlmu/artigo_search:latest
restart: always
volumes:
- ./dump_production/:/dump
working_dir: /search/src/artigo_search
environment:
- POETRY_VIRTUALENVS_CREATE=False
- PYTHONPATH=/search/src/
depends_on:
- api
- redisai
env_file:
- ./.production_api.env
labels:
com.centurylinklabs.watchtower.enable: "true"
api:
image: arthistlmu/artigo_api:latest
restart: always
volumes:
- ./media/:/media
- ./dump_production/:/dump
working_dir: /api/src/artigo_api
environment:
- POETRY_VIRTUALENVS_CREATE=False
- PYTHONPATH=/api/src/
depends_on:
- db
- redisai
- memcached
env_file:
- ./.production_api.env
labels:
com.centurylinklabs.watchtower.enable: "true"
api-proxy:
image: nginx:latest
restart: always
volumes:
- ./media/:/media
- type: bind
source: ./api-proxy/api-proxy-nginx.conf
target: /etc/nginx/conf.d/api-proxy-nginx.conf
read_only: true
- type: bind
source: ./api-proxy/uwsgi_params
target: /uwsgi_params
read_only: true
- type: bind
source: ./api/src/artigo_api/static
target: /static
read_only: true
depends_on:
- api
ports:
- "8000:8000"
labels:
com.centurylinklabs.watchtower.enable: "true"
web:
image: arthistlmu/artigo:latest
restart: always
depends_on:
- api
ports:
- "8080:80"
env_file:
- ./.production_api.env
labels:
com.centurylinklabs.watchtower.enable: "true"
volumes:
db_data: