-
Notifications
You must be signed in to change notification settings - Fork 110
/
docker-compose.yml
76 lines (67 loc) · 1.72 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
version: '3.3'
services:
srv:
image: ${DOCKER_USERNAME}/onec-server:${ONEC_VERSION}
hostname: srv
ports:
- "1540-1541:1540-1541"
- "1560:1560"
volumes:
- srv_data:/home/usr1cv8/.1cv8
- srv_log:/var/log/1C
networks:
- back_net
db:
image: rsyuzyov/docker-postgresql-pro-1c:${ONEC_PG_VERSION}
ports:
- "${PG_PORT:-5432}:5432"
volumes:
- db_data:/var/lib/postgresql
networks:
- back_net
web:
image: ${DOCKER_USERNAME}/onec-server-ws:${ONEC_VERSION}
command: >
bash -c "/opt/1C/v8.3/x86_64/webinst -apache24 -wsdir client -dir /var/www/client -connstr 'Srvr=srv;Ref=database;'
&& /opt/1C/v8.3/x86_64/webinst -apache24 -wsdir api -dir /var/www/api -connstr 'Srvr=srv;Ref=database;usr=site;pwd=pwd'
&& /usr/sbin/apache2ctl -DFOREGROUND"
ports:
- "${HTTP_PORT:-80}:80"
volumes:
- srv_data:/home/usr1cv8/.1cv8
- srv_log:/var/log/1C
networks:
- back_net
repo:
image: ${DOCKER_USERNAME}/onec-crs:${ONEC_VERSION}
ports:
- "${CRS_PORT:-1542}:1542"
volumes:
- repo_data:/home/usr1cv8/.1cv8
networks:
- back_net
ras:
image: ${DOCKER_USERNAME}/onec-server:${ONEC_VERSION}
entrypoint: /opt/1C/v8.3/x86_64/ras
command: "cluster srv:1540"
ports:
- "${RAS_PORT:-1545}:1545"
networks:
- back_net
client:
image: ${DOCKER_USERNAME}/onec-client-vnc:${ONEC_VERSION}
ports:
- "5900:5900"
volumes:
- client_data:/home/usr1cv8/.1cv8
- ./nethasp.ini:/opt/1C/v8.3/x86_64/conf/nethasp.ini
networks:
- back_net
volumes:
srv_data: {}
srv_log: {}
db_data: {}
repo_data: {}
client_data: {}
networks:
back_net: {}