This repository was archived by the owner on Jan 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.aci.yml
More file actions
110 lines (105 loc) · 2.4 KB
/
docker-compose.aci.yml
File metadata and controls
110 lines (105 loc) · 2.4 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
version: "3"
services:
caddy:
domainname: ${AZ_DOMAIN_NAME}
image: ${AZ_REGISTRY_NAME}.azurecr.io/docwell_caddy:latest
build:
context: ./caddy
ports:
- "80:80"
- "443:443"
- "8080:8080"
environment:
- AZ_DOMAIN_NAME=${AZ_DOMAIN_NAME}
deploy:
restart_policy:
condition: none
resources:
limits:
cpus: "0.5"
memory: 0.2g
web:
domainname: ${AZ_DOMAIN_NAME}
image: ${AZ_REGISTRY_NAME}.azurecr.io/docwell_web:latest
build:
context: ./web
environment:
REACT_APP_SERVER_URL: "https://${AZ_DOMAIN_NAME}.garvitkansal.com:8080"
depends_on:
- api
- scripts
- mysql
deploy:
restart_policy:
condition: none
resources:
limits:
cpus: "1.5"
memory: 1.5g
api:
domainname: ${AZ_DOMAIN_NAME}
image: ${AZ_REGISTRY_NAME}.azurecr.io/docwell_api:latest
build:
context: ./api
environment:
SERVER_PORT: 8079
NODE_ENV: production
DB_HOST: mysql
DB_PORT: 3307
DB_USER: root
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
DOCWELL_REPORTS_STORAGE_CONNECTION_STRING: ${AZ_STORAGE_ACCOUNT_CONNECTION_STRING}
depends_on:
- scripts
- mysql
volumes:
- data-prod:/app
deploy:
restart_policy:
condition: none
resources:
limits:
cpus: "0.5"
memory: 0.5g
scripts:
image: ${AZ_REGISTRY_NAME}.azurecr.io/docwell_scripts:latest
build:
context: ./scripts
environment:
DB_HOST: mysql
DB_PORT: 3307
DB_USER: root
DB_PASSWORD: ${DB_PASSWORD}
DB_DATABASE: ${DB_DATABASE}
DB_FIRST_USER: ${DB_FIRST_USER}
DB_FIRST_PASSWORD: ${DB_FIRST_PASSWORD}
depends_on:
- mysql
deploy:
restart_policy:
condition: none
resources:
limits:
cpus: "0.5"
memory: 0.5g
mysql:
image: mysql:latest
environment:
MYSQL_TCP_PORT: 3307
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
volumes:
- data-prod:/var/lib/mysql
deploy:
restart_policy:
condition: none
resources:
limits:
cpus: "0.5"
memory: 0.5g
volumes:
data-prod:
driver: azure_file
driver_opts:
share_name: ${AZ_STORAGE_ACCOUNT_SHARE}
storage_account_name: ${AZ_STORAGE_ACCOUNT_NAME}