-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathldb-compose.yaml
More file actions
142 lines (138 loc) · 3.12 KB
/
ldb-compose.yaml
File metadata and controls
142 lines (138 loc) · 3.12 KB
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
version: "3"
services:
#databases
## MariaDB
ldb_database:
image: linuxserver/mariadb:latest
container_name: ldb_database
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TZ}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_DATABASE=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
restart: always
networks:
- ldbbackend
volumes:
- /mnt/ldbdatabase:/config
## Redis
ldb_redis:
image: redis:alpine
container_name: ldb_redis
restart: always
networks:
- ldbbackend
# API
ldb_api:
container_name: ldb_api
build:
context: api/
dockerfile: Dockerfile
args:
- TZ=${TZ}
user: "1002:1002"
environment:
- MYSQL_IP=ldb_database
- MYSQL_DB=${MYSQL_DATABASE}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_PASSWORD=${MYSQL_PASSWORD}
- REDIS_IP=ldb_redis
- REDIS_PORT=6379
- LABEL_MAKER=${LABEL_MAKER}
- FLASK_SECRET=${FLASK_SECRET}
restart: always
volumes:
- /home/bibwsstaff/ldbinvoice:/var/ldbinvoice
ports:
- 5500:5000
networks:
- ldbbackend
depends_on:
- ldb_redis
- ldb_database
#apps, will build to order
## Barcode processor
ldb_processor_bc:
container_name: ldb_processor_bc_api
build:
context: barcodeprocessor/
dockerfile: Dockerfile
args:
- TZ=${TZ}
user: "1002:1002"
environment:
- APIURL=ldb_api:5000
- APIKEY=${APIKEY}
- CONTAINER_ID=1234
volumes:
- /home/bibwsstaff/ldbinvoice:/var/ldbinvoice
restart: always
depends_on:
- ldb_api
networks:
- ldbbackend
# ## Order Submission Processor
ldb_processor_os:
container_name: ldb_processor_os_api
build:
context: ordersubmission/
dockerfile: Dockerfile
args:
- TZ=${TZ}
user: "1002:1002"
environment:
- APIURL=ldb_api:5000
- APIKEY=${APIKEY}
volumes:
- /home/bibwsstaff/ldbinvoice:/var/ldbinvoice
restart: always
depends_on:
- ldb_api
networks:
- ldbbackend
## ARInvoice Processor
ldb_processor_ar:
container_name: ldb_processor_ar_api
build:
context: arinvoice/
dockerfile: Dockerfile
args:
- TZ=${TZ}
user: "1002:1002"
environment:
- APIURL=ldb_api:5000
- APIKEY=${APIKEY}
- PRICECHANGEIGNORE=${PRICECHANGEIGNORE}
volumes:
- /home/bibwsstaff/ldbinvoice:/var/ldbinvoice
restart: always
depends_on:
- ldb_api
networks:
- ldbbackend
## IMAP downloader
ldb_emailwatcher_dev:
container_name: ldb_emailwatcher_api
build:
context: emailwatcher/
dockerfile: Dockerfile
args:
- TZ=${TZ}
user: "1002:1002"
environment:
- IMAP_ADDR=${IMAP_ADDR}
- IMAP_USER=${IMAP_USER}
- IMAP_PASS=${IMAP_PASS}
- IMAP_PORT=${IMAP_PORT}
- SYNCTIME=1
volumes:
- /home/bibwsstaff/ldbinvoice:/var/ldbinvoice
restart: always
depends_on:
- ldb_processor_ar
- ldb_processor_os
networks:
ldbbackend: