-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-tests.yaml
51 lines (50 loc) · 1.42 KB
/
docker-compose-tests.yaml
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
name: "uesio-test"
services:
redis:
image: "redis:alpine"
db:
image: "postgres:14"
environment:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: pgtest
healthcheck:
test: ["CMD-SHELL", "pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 5s
timeout: 10s
retries: 4
start_period: 10s
app:
image: "$APP_IMAGE"
depends_on:
db:
condition: service_healthy
redis:
condition: service_started
ports:
- "3000:3000"
environment:
REDIS_HOST: redis
REDIS_PORT: 6379
UESIO_BUNDLES_BUCKET_NAME: uesiobundlestore-dev
UESIO_CACHE_SITE_BUNDLES: "true"
UESIO_DB_DATABASE: pgtest
UESIO_DB_HOST: db
UESIO_DB_USER: postgres
UESIO_DB_PASSWORD: postgres
UESIO_DB_PORT: 5432
UESIO_PLATFORM_BUNDLESTORE_CREDENTIALS: uesio/core.aws
UESIO_PLATFORM_BUNDLESTORE_TYPE: uesio.local
UESIO_PLATFORM_FILESOURCE_CREDENTIALS: uesio/core.aws
UESIO_PLATFORM_FILESOURCE_TYPE: uesio.local
UESIO_SESSION_STORE: redis
UESIO_USERFILES_BUCKET_NAME: uesiofiles-dev
UESIO_MOCK_AUTH: "true"
UESIO_USE_HTTPS: "true"
UESIO_DEBUG_SQL: "true"
PORT: 3000
UESIO_DEV: "true"
UESIO_PRIMARY_DOMAIN: "uesio-dev.com"
volumes:
- ./apps/platform/ssl:/ssl
command: sh -c "./uesio migrate && ./uesio seed && ./uesio serve"