-
Notifications
You must be signed in to change notification settings - Fork 46
/
docker-compose.yml
91 lines (91 loc) · 2.38 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: "2.4"
services:
registry:
image: namecheap/ilc_registry:latest
ports:
- "4001:4001"
environment:
NODE_ENV: production
DB_CLIENT: mysql
# DB_CLIENT: pg
DB_HOST: mysql
# DB_HOST: postgres
DB_USER: root
DB_PASSWORD: pwd
DB_NAME: ilc
depends_on:
mysql:
condition: service_healthy
# postgres:
# condition: service_healthy
registry_worker:
image: namecheap/ilc_registry:latest
command: ["npm", "run", "assetsdiscovery"]
environment:
NODE_ENV: production
DB_CLIENT: mysql
# DB_CLIENT: pg
DB_HOST: mysql
# DB_HOST: postgres
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
restart: always
ports:
- "80:8233"
- "8233:8233"
- "8234-8240:8234-8240" # Ports from "demo-apps" container
environment:
NODE_ENV: production
REGISTRY_ADDR: "http://host.docker.internal: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
# ports:
# - "8234-8240:8234-8240" # Uncomment to run with ilc via node
env_file:
- ./demo-apps.env # Used by the demo site to override PUBLIC_HOST var
mysql:
container_name: mysql
platform: linux/x86_64
image: mysql:5.7
volumes:
- .:/usr/src/ilc
- "./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
postgres:
container_name: postgres
image: postgres:15.6-alpine
restart: always
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: pwd
POSTGRES_DB: ilc
ports:
- '5432:5432'
volumes:
- postgres:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "sh -c 'pg_isready -U root -d ilc'"]
interval: 3s
timeout: 3s
retries: 50
volumes:
postgres:
driver: local