-
Notifications
You must be signed in to change notification settings - Fork 9
/
production.yml
57 lines (51 loc) · 1.3 KB
/
production.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
version: '3.8'
services:
srv:
image: $CI_REGISTRY/devops/onec-docker/server:$ONEC_VERSION
hostname: srv
depends_on:
- db
volumes:
- srv_data:/home/usr1cv8/.1cv8
- srv_log:/var/log/1C
networks:
- backend
ws:
image: $CI_REGISTRY/devops/onec-docker/ws:$ONEC_VERSION
depends_on:
- srv
ports:
- "$DEPLOY_PORT:80"
command: bash -c
"/opt/1cv8/current/webinst -apache24
-wsdir client
-dir /var/www/client
-descriptor /var/www/client.vrd
-connstr 'Srvr=srv;Ref=transmitter;'
&& /opt/1cv8/current/webinst -apache24
-wsdir api
-dir /var/www/api
-descriptor /var/www/api.vrd
-connstr 'Srvr=srv;Ref=transmitter;usr=$WS_USER;pwd=$WS_PASSWORD'
&& chown -R usr1cv8:grp1cv8 /var/www/client /var/www/api
&& /usr/sbin/apache2ctl -DFOREGROUND"
volumes:
- srv_data:/home/usr1cv8/.1cv8
- srv_log:/var/log/1C
- ./web/transmitter/client.vrd:/var/www/client.vrd
- ./web/transmitter/api.vrd:/var/www/api.vrd
networks:
- backend
db:
image: strizhhh/postgresql-pro-1c:9.6
volumes:
- db_data:/var/lib/postgresql
networks:
- backend
volumes:
srv_data:
srv_log:
db_data:
networks:
backend:
name: $DEPLOY_NETWORK