forked from namecheap/ilc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (60 loc) · 1.6 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (60 loc) · 1.6 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
version: "2.4"
services:
registry:
image: namecheap/ilc_registry:latest
ports:
- "4001:4001"
environment:
NODE_ENV: production
DB_CLIENT: mysql
DB_HOST: mysql
DB_USER: root
DB_PASSWORD: pwd
DB_NAME: ilc
depends_on:
mysql:
condition: service_healthy
registry_worker:
image: namecheap/ilc_registry:latest
command: ["npm", "run", "assetsdiscovery"]
environment:
NODE_ENV: production
DB_CLIENT: mysql
DB_HOST: mysql
DB_USER: root
DB_PASSWORD: pwd
DB_NAME: ilc
network_mode: "service:ilc" # We need this to make apps accessible at 127.0.0.1
depends_on:
mysql:
condition: service_healthy
ilc:
image: namecheap/ilc:latest
ports:
- "80:8233"
- "8233:8233"
- "8234-8240:8234-8240" # Ports from "demo-apps" container
environment:
NODE_ENV: production
REGISTRY_ADDR: "http://registry:4001"
OVERRIDE_CONFIG_TRUSTED_ORIGINS: all
demo-apps:
image: namecheap/ilc-demo-apps:latest
network_mode: "service:ilc" # We need this to make apps accessible at 127.0.0.1 inside "ilc" container
env_file:
- ./demo-apps.env # Used by the demo site to override PUBLIC_HOST var
mysql:
platform: linux/x86_64
image: mysql:5.7
volumes:
- "./dbfiles:/var/lib/mysql"
ports:
- "3306:3306"
environment:
MYSQL_ROOT_PASSWORD: pwd
MYSQL_DATABASE: ilc
healthcheck:
test: ["CMD", "mysqladmin", "-uroot", "-ppwd", "processlist", "-h", "localhost"]
interval: 3s
timeout: 3s
retries: 50