-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yaml
55 lines (55 loc) · 1.36 KB
/
compose.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
52
53
54
55
version: "3.7"
name: purity-vision
secrets:
google_credentials:
file: secrets/google-credentials.json
services:
api:
image: purity-vision:latest
build:
context: .
dockerfile: Dockerfile
depends_on:
db:
condition: service_healthy
links:
- db
ports:
- "8080:8080"
secrets:
- google_credentials
environment:
- GOOGLE_APPLICATION_CREDENTIALS=/run/secrets/google_credentials
- PURITY_DB_HOST=${PURITY_DB_HOST}
- PURITY_DB_PORT=${PURITY_DB_PORT}
- PURITY_DB_NAME=${PURITY_DB_NAME}
- PURITY_DB_USER=${PURITY_DB_USER}
- PURITY_DB_PASS=${PURITY_DB_PASS}
- PURITY_DB_SSL_MODE=${PURITY_DB_SSL_MODE}
- PURITY_LOG_LEVEL=${PURITY_LOG_LEVEL}
- STRIPE_WEBHOOK_SECRET=${STRIPE_WEBHOOK_SECRET}
- STRIPE_KEY=${STRIPE_KEY}
- EMAIL_NAME=${EMAIL_NAME}
- EMAIL_FROM=${EMAIL_FROM}
- SENDGRID_API_KEY=${SENDGRID_API_KEY}
db:
image: postgres:latest
hostname: postgres
ports:
- "5432:5432"
volumes:
- "./pg-data:/var/lib/postgresql/data"
- "./migrations:/docker-entrypoint-initdb.d"
healthcheck:
test:
[
"CMD",
"pg_isready",
"-U",
"${PURITY_DB_USER}",
"-d",
"${PURITY_DB_NAME}"
]
interval: 10s
timeout: 5s
retries: 3