-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathdocker-compose_pattern.yml
158 lines (147 loc) · 4.74 KB
/
docker-compose_pattern.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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
version: '3.6'
services:
db:
image: fresh/db
hostname: db.HOSTNAMEREPLACE
container_name: db.HOSTNAMEREPLACE
volumes:
- 1c_pg_data:/var/lib/1c/pgdata
- 1c_pg_socket:/tmp/postgresql/socket
- ./mnt:/mnt
- ../images/site/create_db.psql:/create_db_site.psql
- ../images/forum/create_db.psql:/create_db_forum.psql
- ../images/db/wait_postgres.sh:/wait_postgres.sh
nginx:
image: nginx:stable-alpine
hostname: nginx.HOSTNAMEREPLACE
container_name: nginx.HOSTNAMEREPLACE
networks:
default:
aliases:
- HOSTNAMEREPLACE
environment:
- SITE_HOST=site.HOSTNAMEREPLACE
- BACKEND_HOST=web.HOSTNAMEREPLACE
- GATE_HOST=gate.HOSTNAMEREPLACE
- HOSTNAME=HOSTNAMEREPLACE
ports:
- 80:80
- 443:443
volumes:
- ./artifacts/nginx/conf/1c_app.conf:/etc/nginx/1c_app.conf
- ./artifacts/nginx/conf/1c_common.conf:/etc/nginx/1c_common.conf
- ./artifacts/nginx/conf/1c_error.conf:/etc/nginx/1c_error.conf
- ./artifacts/nginx/conf/1c_error_openid.conf:/etc/nginx/1c_error_openid.conf
- ./artifacts/nginx/conf/1c_error_site.conf:/etc/nginx/1c_error_site.conf
- ./artifacts/nginx/conf/1c_keepalive.conf:/etc/nginx/1c_keepalive.conf
- ./artifacts/nginx/conf/1c_upstream.conf:/etc/nginx/1c_upstream.conf
- ./artifacts/nginx/conf/nginx.conf:/etc/nginx/nginx.conf
- ./artifacts/nginx/conf/conf.d/local-ssl.conf:/etc/nginx/conf.d/local-ssl.conf
- ./artifacts/nginx/conf/conf.d/local.conf://etc/nginx/conf.d/local.conf
- ./artifacts/nginx/log:/var/log/nginx
- ./mnt:/mnt
- ../certs/fullchain.pem:/etc/pki-custom/fullchain.crt
- ../certs/privkey.pem:/etc/pki-custom/privkey.key
- ../images/site/distr/site/media:/var/www/content/media/
depends_on:
- site
- forum
s3:
image: minio/minio:latest
hostname: s3.1cfresh-dev.ru
container_name: s3.1cfresh-dev.ru
volumes:
- ./artifacts/s3:/data
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
command: server /data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
srv:
image: fresh/core
hostname: srv.HOSTNAMEREPLACE
container_name: srv.HOSTNAMEREPLACE
command: srv+cli
volumes:
- 1c_pg_socket:/tmp/postgresql/socket
- 1c_server_data:/var/lib/1c/data
- ./artifacts/srv/log:/var/log/1c
- ./mnt:/mnt
- /tmp/.aksusb:/tmp/.aksusb
- ../licenses_1c:/var/1C/licenses
- ../conf/core:PATH_TO_1C_REPLACEconf
ports:
- 1540-1541:1540-1541
- 1538:1538
- 1550:1550
- 1560-1591:1560-1591
- 5900:5900
depends_on:
- db
ras:
image: fresh/core
hostname: ras.HOSTNAMEREPLACE
container_name: ras.HOSTNAMEREPLACE
command: PATH_TO_1C_REPLACEras cluster --port=1545 srv:1540
volumes:
- ./artifacts/ras/log:/var/log/1c
- ./mnt:/mnt
- ../images/core/conf/logcfg.xml:PATH_TO_1C_REPLACEconf/logcfg.xml
ports:
- 1545:1545
web:
image: fresh/core
hostname: web.HOSTNAMEREPLACE
container_name: web.HOSTNAMEREPLACE
command: web
volumes:
- ./artifacts/web/log:/var/log/1c
- ./artifacts/web/www/a/:/var/www/a/
- ./artifacts/web/www/int/:/var/www/int/
- ./artifacts/web/conf/httpd.conf:/etc/httpd/conf/httpd.conf
- ./mnt:/mnt
depends_on:
- srv
site:
image: fresh/site
hostname: site.HOSTNAMEREPLACE
container_name: site.HOSTNAMEREPLACE
volumes:
- ./artifacts/site/searchIndex:/var/www/content/searchIndex
- ./artifacts/site/site_files:/var/www/content/site_files
- ./mnt:/mnt
- ../distr/postgresql.jar:/usr/local/tomcat/lib/postgresql.jdbc4.jar
- ../conf/site/context.xml:/usr/local/tomcat/conf/context.xml
- ../conf/site/server.xml:/usr/local/tomcat/conf/server.xml
- ../images/site/distr/site/media:/var/www/content/media/
- ../images/site/wait_site.sh:/wait_site.sh
depends_on:
- db
forum:
image: fresh/forum
hostname: forum.HOSTNAMEREPLACE
container_name: forum.HOSTNAMEREPLACE
volumes:
- ./artifacts/forum:/var/www/forum/mess_files
- ./mnt:/mnt
- ../distr/postgresql.jar:/usr/local/tomcat/lib/postgresql.jdbc4.jar
- ../conf/forum/context.xml:/usr/local/tomcat/conf/context.xml
- ../conf/forum/server.xml:/usr/local/tomcat/conf/server.xml
depends_on:
- db
gate:
image: fresh/gate
hostname: gate.HOSTNAMEREPLACE
container_name: gate.HOSTNAMEREPLACE
volumes:
- ./mnt:/mnt
depends_on:
- srv
volumes:
1c_pg_data:
1c_pg_socket:
1c_server_data: