-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.test.yml
47 lines (44 loc) · 1.74 KB
/
docker-compose.test.yml
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
version: "3"
services:
everglot-app:
volumes:
- ./:/home/node/app
environment:
NODE_ENV: "production"
ROARR_LOG: "true"
HOST: "0.0.0.0"
PORT: "30001"
DISABLE_SECURE_COOKIES: "true"
entrypoint: entrypoints/test-after-db.sh
command: ["/bin/sh", "-c", "npm run dev | roarr pretty-print"]
# Avoid building the same image twice.
image: everglot-app-image
everglot-app-test:
environment:
NODE_ENV: "test"
BASE_URL: "http://everglot-app:30001"
ROARR_LOG: "true"
PGUSER: "${POSTGRES_USER:?Please set POSTGRES_USER}"
PGPASSWORD: "${POSTGRES_PASSWORD:?Please set POSTGRES_PASSWORD}"
PGDATABASE: "${POSTGRES_DB:?Please set POSTGRES_DB}"
PGHOST: "${PGHOST:-everglot-db}"
PGPORT: "${PGPORT:-5432}"
DATABASE_URL: "postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${PGHOST:-everglot-db}:${PGPORT}/${POSTGRES_DB}"
SESSION_COOKIE_VALIDATION_SECRETS: ${SESSION_COOKIE_VALIDATION_SECRETS:?Please set SESSION_COOKIE_VALIDATION_SECRETS}
SESSION_COOKIE_NAME: "${SESSION_COOKIE_NAME:-everglot_sid}"
AGORA_APP_CERTIFICATE: ""
SENDINBLUE_API_KEY: ""
entrypoint: entrypoints/test-after-app.sh
# Avoid building the same image twice.
image: everglot-app-image
depends_on:
- everglot-app
volumes:
- ./:/home/node/app
everglot-db:
environment:
POSTGRES_USER: "everglot_app_user"
POSTGRES_PASSWORD: "everglot_app_pass"
POSTGRES_DB: "everglot_app_db"
ports:
- "127.0.0.1:5442:5432"