Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (106 loc) · 2.89 KB
/
Copy pathdocker-compose.yml
File metadata and controls
110 lines (106 loc) · 2.89 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
include:
- ./docker-compose.infra.yml
services:
api:
container_name: api
image: ghcr.io/ever-co/gauzy-api:latest
environment:
NODE_ENV: ${NODE_ENV:-production}
DB_HOST: db
env_file:
- .env.compose
entrypoint: './entrypoint.compose.sh'
command: ['node', 'main.js']
restart: on-failure
depends_on:
db:
condition: service_healthy
zipkin:
condition: service_started
redis:
condition: service_started
minio:
condition: service_healthy
minio_create_buckets:
condition: service_started
opensearch:
condition: service_started
cube:
condition: service_started
links:
- db:${DB_HOST:-db}
- cube:${CUBE_HOST:-cube}
- redis:${REDIS_HOST:-redis}
- minio:${MINIO_HOST:-minio}
- opensearch:${ES_HOST:-opensearch}
# volumes:
# - webapp_node_modules:/srv/gauzy/node_modules
# - api_node_modules:/srv/gauzy/apps/api/node_modules
ports:
- '3000:${API_PORT:-3000}'
networks:
- overlay
webapp:
container_name: webapp
image: ghcr.io/ever-co/gauzy-webapp:latest
environment:
NODE_ENV: ${NODE_ENV:-production}
SENTRY_PROFILE_SAMPLE_RATE: ${SENTRY_PROFILE_SAMPLE_RATE:-1}
DEMO: ${DEMO:-false}
entrypoint: './entrypoint.compose.sh'
command: ['nginx', '-g', 'daemon off;']
env_file:
- .env.compose
restart: on-failure
links:
- db:${DB_HOST:-db}
- api:${API_HOST:-api}
- cube:${CUBE_HOST:-cube}
- redis:${REDIS_HOST:-redis}
- minio:${MINIO_HOST:-minio}
- opensearch:${ES_HOST:-opensearch}
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
minio:
condition: service_healthy
minio_create_buckets:
condition: service_started
opensearch:
condition: service_started
api:
condition: service_started
# volumes:
# - webapp_node_modules:/srv/gauzy/node_modules
ports:
- '4200:${UI_PORT:-4200}'
networks:
- overlay
# Fires every scheduled job (outbox dispatch, webhook retries, sweeps): with Redis on, the API only enqueues.
worker:
container_name: worker
image: ghcr.io/ever-co/gauzy-worker:latest
environment:
NODE_ENV: ${NODE_ENV:-production}
DB_HOST: db
# Uploads stay in the api container with FILE_PROVIDER=LOCAL, so the API keeps consuming docs-processing.
GAUZY_DOCS_QUEUE_WORKER_ENABLED: 'false'
env_file:
- .env.compose
entrypoint: './entrypoint.compose.sh'
command: ['node', 'main.js']
restart: on-failure
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
api:
condition: service_started
links:
- db:${DB_HOST:-db}
- redis:${REDIS_HOST:-redis}
networks:
- overlay