Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (67 loc) · 2.09 KB
/
Copy pathdocker-compose.yml
File metadata and controls
67 lines (67 loc) · 2.09 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
services:
registry:
image: namecheap/ilc_registry:latest
ports:
- '4001:4001'
environment:
NODE_ENV: production
DB_HOST: postgres
DB_USER: root
DB_PASSWORD: pwd
DB_NAME: ilc
DB_SEED: true
depends_on:
postgres:
condition: service_healthy
registry_worker:
image: namecheap/ilc_registry:latest
command: ['npm', 'run', 'assetsdiscovery']
environment:
NODE_ENV: production
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:
postgres:
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
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
- .:/usr/src/ilc
healthcheck:
test: ['CMD-SHELL', "sh -c 'pg_isready -U root -d ilc'"]
interval: 3s
timeout: 3s
retries: 50
volumes:
postgres:
driver: local