-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
151 lines (151 loc) · 4.91 KB
/
docker-compose.yml
File metadata and controls
151 lines (151 loc) · 4.91 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
services:
nginx:
restart: unless-stopped
image: nginx:1.27.4
ports:
- '80:80'
- '443:443'
environment:
NGINX_WEBHOOK_SYNC_TIMEOUT: '${OPS_FLOW_TIMEOUT_SECONDS:-600}s'
volumes:
- ./${OPS_NGINX_CONFIG_FILE:-nginx.gateway.conf}:/etc/nginx/conf.d/default.conf
- ./nginx.gateway.routing.template:/etc/nginx/templates/gateway.routing.template
- ./tls:/etc/nginx/tls
depends_on:
openops-tables:
condition: service_healthy
openops-analytics:
condition: service_healthy
openops-app:
image: public.ecr.aws/openops/openops-app:${OPS_VERSION:-latest}
restart: unless-stopped
env_file: .env
environment:
OPS_COMPONENT: app
OPS_VERSION: ${OPS_VERSION:-latest}
OPS_OPENOPS_TABLES_VERSION: 0.2.17
OPS_ANALYTICS_VERSION: 0.14.6
depends_on:
openops-tables:
condition: service_healthy
openops-analytics:
condition: service_healthy
redis:
condition: service_healthy
postgres:
condition: service_healthy
openops-engine:
image: public.ecr.aws/openops/openops-engine:${OPS_VERSION:-latest}
restart: unless-stopped
env_file: .env
command: ['cp -r /var/tmp-base/. /tmp/ && node main.js; exit $?']
environment:
OPS_BASE_CODE_DIRECTORY: /tmp/codes
OPS_COMPONENT: engine
OPS_SERVER_API_URL: http://openops-app/api/
volumes:
- ${HOST_AZURE_CONFIG_DIR:-openops_azure_cli_data}:/tmp/azure
- ${HOST_CLOUDSDK_CONFIG:-openops_gcloud_cli_data}:/tmp/gcloud
depends_on:
- openops-app
openops-tables:
image: public.ecr.aws/openops/openops-tables:0.2.17
restart: unless-stopped
environment:
BASEROW_PUBLIC_URL: ${OPS_OPENOPS_TABLES_PUBLIC_URL}
BASEROW_PRIVATE_URL: ${OPS_OPENOPS_TABLES_API_URL}
BASEROW_EXTRA_ALLOWED_HOSTS: '*'
SECRET_KEY: ${OPS_ENCRYPTION_KEY}
BASEROW_JWT_SIGNING_KEY: ${OPS_JWT_SECRET}
BASEROW_ADMIN_USERNAME: ${OPS_OPENOPS_ADMIN_EMAIL}
BASEROW_ADMIN_PASSWORD: ${OPS_OPENOPS_ADMIN_PASSWORD}
BASEROW_REFRESH_TOKEN_LIFETIME_HOURS: ${OPS_JWT_TOKEN_LIFETIME_HOURS}
BASEROW_ACCESS_TOKEN_LIFETIME_MINUTES: ${OPS_TABLES_TOKEN_LIFETIME_MINUTES}
SYNC_TEMPLATES_ON_STARTUP: 'false'
MIGRATE_ON_STARTUP: 'true'
DISABLE_VOLUME_CHECK: 'yes'
DATABASE_NAME: ${OPS_OPENOPS_TABLES_DATABASE_NAME}
DATABASE_HOST: ${OPS_POSTGRES_HOST}
DATABASE_PORT: ${OPS_POSTGRES_PORT}
DATABASE_USER: ${OPS_POSTGRES_USERNAME}
DATABASE_PASSWORD: ${OPS_POSTGRES_PASSWORD}
REDIS_URL: redis://${OPS_REDIS_HOST}:${OPS_REDIS_PORT}/0
shm_size: '512mb'
volumes:
- 'openops_tables_data:/baserow/data'
healthcheck:
test:
[
'CMD-SHELL',
'/baserow/backend/docker/docker-entrypoint.sh backend-healthcheck',
]
interval: 20s
timeout: 8s
retries: 10
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
openops-analytics:
image: public.ecr.aws/openops/openops-analytics:0.14.6
restart: unless-stopped
environment:
ADMIN_PASSWORD: ${OPS_ANALYTICS_ADMIN_PASSWORD}
POWERUSER_PASSWORD: ${ANALYTICS_POWERUSER_PASSWORD}
GUNICORN_LOGLEVEL: 'debug'
DATABASE_DIALECT: 'postgresql'
DATABASE_DB: 'analytics'
DATABASE_HOST: ${OPS_POSTGRES_HOST}
DATABASE_PORT: ${OPS_POSTGRES_PORT}
DATABASE_USER: ${OPS_POSTGRES_USERNAME}
DATABASE_PASSWORD: ${OPS_POSTGRES_PASSWORD}
DATABASE_HOST_ALT: ${OPS_OPENOPS_TABLES_DB_HOST}
SUPERSET_SECRET_KEY: ${OPS_ENCRYPTION_KEY}
SUPERSET_FEATURE_ALLOW_ADHOC_SUBQUERY: '${ANALYTICS_ALLOW_ADHOC_SUBQUERY}'
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8088/health']
interval: 20s
timeout: 8s
retries: 10
depends_on:
postgres:
condition: service_healthy
openops-tables:
condition: service_healthy
postgres:
image: 'postgres:14.4'
restart: unless-stopped
command: >
postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS:-300}
environment:
POSTGRES_USER: ${OPS_POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${OPS_POSTGRES_PASSWORD}
POSTGRES_DB: ${OPS_POSTGRES_DATABASE}
ports: ['5432:5432']
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-db.sh:/docker-entrypoint-initdb.d/init-db.sh:ro
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U ${OPS_POSTGRES_USERNAME}']
interval: 10s
timeout: 5s
retries: 5
redis:
image: 'redis:7.4.0'
restart: unless-stopped
command: ['redis-server', '--notify-keyspace-events', 'Ex']
ports: ['6379:6379']
volumes:
- 'redis_data:/data'
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 3s
retries: 3
volumes:
openops_azure_cli_data:
openops_gcloud_cli_data:
openops_tables_data:
postgres_data:
redis_data: