forked from volodkindv/environment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
46 lines (46 loc) · 1.52 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
version: '2'
services:
ones_ws:
# image: trantor77/ws-1c-apache22
image: altf13/1c_server
container_name: ones_ws
hostname: ones_ws
restart: always
ports:
- "80:80"
- "1540-1541:1540-1541"
- "1560-1591:1560-1591"
volumes:
- /volume1/docker/1c/data:/root/.1cv8
- /volume1/docker/1c/out_vrd:/descriptors
- /volume1/docker/1c/apache2:/etc/apache2/
- /volume1/docker/1c/html:/var/www/html
depends_on:
- postgres
- elasticsearch
postgres:
image: temrdm/1c_postgres
container_name: postgres
hostname: postgres
restart: always
# Если контейнер с postgresql не стартует и выдает ошибку про shmmax в sysctl, значит, это баг докера.
# он зарегистрирован https://github.com/docker/docker/issues/10176
# следующая команда "ipc: host" позволяет пофиксить его, но дает контейнеру доступ к процессам хоста, что небезопасно.
ipc: host
volumes:
- /volume1/docker/1c/pg_sql:/var/lib/postgresql/data
expose:
- "5432"
environment:
- POSTGRES_PASSWORD=**
elasticsearch:
image: elasticsearch
container_name: elasticsearch
hostname: elasticsearch
restart: always
volumes:
- /volume1/docker/1c/elasticsearch/data:/usr/share/elasticsearch/data
- /volume1/docker/1c/elasticsearch/plugins:/usr/share/elasticsearch/plugins
expose:
- "9200"
- "9300"