-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy pathcompose.yaml
More file actions
105 lines (105 loc) · 3.36 KB
/
compose.yaml
File metadata and controls
105 lines (105 loc) · 3.36 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
name: openopsdev
services:
tables:
container_name: tables
image: public.ecr.aws/openops/openops-tables:0.2.17
environment:
BASEROW_PUBLIC_URL: ${OPS_OPENOPS_TABLES_PUBLIC_URL}
BASEROW_PRIVATE_URL: http://localhost:3001
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_OPENOPS_TABLES_DB_HOST}
DATABASE_PORT: 5432
DATABASE_USER: ${OPS_POSTGRES_USERNAME}
DATABASE_PASSWORD: ${OPS_POSTGRES_PASSWORD}
REDIS_URL: redis://redis:6379/0
EDITOR_URL: ${OPS_FRONTEND_URL}/sign-in
ports: ['3001:80']
volumes:
- 'openops_tables_data:/baserow/data'
healthcheck:
test:
[
'CMD-SHELL',
'/baserow/backend/docker/docker-entrypoint.sh backend-healthcheck',
]
interval: 20s
timeout: 8s
retries: 10
shm_size: '512mb'
depends_on:
redis:
condition: service_healthy
postgres:
condition: service_healthy
postgres:
image: 'postgres:14.4'
container_name: postgres
restart: unless-stopped
environment:
POSTGRES_USER: ${OPS_POSTGRES_USERNAME}
POSTGRES_PASSWORD: ${OPS_POSTGRES_PASSWORD}
POSTGRES_DB: ${OPS_POSTGRES_DATABASE}
ports: ['5432:5432']
command: >
postgres -c max_connections=${POSTGRES_MAX_CONNECTIONS:-300}
volumes:
- postgres_data:/var/lib/postgresql/data
- ./tools/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'
container_name: redis
ports: ['6379:6379']
command: ['redis-server', '--notify-keyspace-events', 'Ex']
healthcheck:
test: ['CMD', 'redis-cli', 'ping']
interval: 5s
timeout: 3s
retries: 3
volumes:
- 'redis_data:/data'
analytics:
container_name: analytics
image: public.ecr.aws/openops/openops-analytics:0.14.6
ports: ['8088:8088']
environment:
DATABASE_DIALECT: 'postgresql'
DATABASE_HOST: 'postgres'
DATABASE_PORT: '5432'
GUNICORN_LOGLEVEL: 'debug'
DATABASE_DB: 'analytics'
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}'
ADMIN_PASSWORD: ${OPS_ANALYTICS_ADMIN_PASSWORD}
POWERUSER_PASSWORD: ${ANALYTICS_POWERUSER_PASSWORD}
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8088/health']
interval: 20s
timeout: 8s
retries: 10
depends_on:
postgres:
condition: service_healthy
tables:
condition: service_healthy
volumes:
openops_tables_data:
postgres_data:
redis_data: