-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-local-db.sample.yaml
86 lines (84 loc) · 3 KB
/
docker-compose-local-db.sample.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
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
# docker-compose.yml
version: '2.2'
services:
cache:
image: memcached
craft:
build: ./
depends_on:
- postgres
volumes:
- ./api:/var/www/html
environment:
CRAFT_ENVIRONMENT: dev
SECURITY_KEY: <CRAFT SECURITY KEY>
DB_DSN: pgsql:host=<CRAFT DB HOSTNAME>;dbname=<CRAFT DB NAME>
DB_SERVER: <CRAFT DB SERVER>
DB_NAME: <CRAFT DB NAME>
DB_USER: <CRAFT DB USER>
DB_PASSWORD: <CRAFT DB PASSWORD>
DB_DATABASE: <CRAFT DB>
DB_SCHEMA: <CRAFT SCHEMA>
DB_DRIVER: pgsql
DB_PORT: 5432
PRIMARY_SITE_URL: <CRAFT CMS URL>
WEB_BASE_URL: <CLIENT URL>
ALIAS_PREVIEW_URL_FORMAT: <CLIENT URL>/api/preview?site={site}&uri={uri}
VERIFY_EMAIL_PATH: <CLIENT URL>/?activate=true
SET_PASSWORD_PATH: <CLIENT URL>/?set_password=true
ENABLE_MEMCACHED: "true"
MEMCACHED_IP: cache
MEMCACHED_PORT: 11211
PORT: 8080
NEXT_API_BASE_URL: gateway.docker.internal:<LOCALHOST CLIENT PORT>/api
NEXT_REVALIDATE_SECRET_TOKEN: <ISR TOKEN>
GCP_PROJECT_ID: <GCP PROJECT ID>
GCS_GENERAL_BUCKET: <GCP BUCKET>
GCS_HEROES_BUCKET: <GCP BUCKET>
GCS_CONTENT_BUCKET: <GCP BUCKET>
GCS_CALLOUTS_BUCKET: <GCP BUCKET>
GCS_STAFF_BUCKET: <GCP BUCKET>
GOOGLE_APPLICATION_CREDENTIALS: <PATH TO GOOGLE APP CREDENTIALS>
GOOGLE_APP_ID: <GOOGLE APP ID>
GOOGLE_APP_SECRET: <GOOGLE APP SECRET>
CANTO_APP_ID: <CANTO APP ID>
CANTO_SECRET_KEY: <CANTO APP SECRET>
CANTO_AUTH_ENDPOINT: https://oauth.canto.com/oauth/api/oauth2/token?app_id={appId}&app_secret={secretKey}&grant_type=client_credentials&refresh_token=
CANTO_ASSET_ENDPOINT: <RUBIN CANTO API ENTRYPOINT>
CANTO_ASSET_BASEURL: <RUBIN CANTO ASSET BASE URL>
FACEBOOK_APP_ID: <FACEBOOK APP ID>
FACEBOOK_APP_SECRET: <FACEBOOK APP SECRET>
FACEBOOK_APP_REDIRECT_URL: <CLIENT URL>/sso-redirect?sso=true&facebook=true
EMAIL_FROM_ADDRESS: [email protected]
EMAIL_REPLY_TO_ADDRESS: [email protected]
EMAIL_SENDER_NAME: "Rubin Observatory Education and Public Outreach"
EMAIL_HTML_EMAIL_TEMPLATE: ""
EMAIL_SMTP_HOST_NAME: <SMTP HOSTNAME>
EMAIL_SMTP_PORT: <SMTP PORT>
EMAIL_SMTP_USERNAME: <SMTP USERNAME>
EMAIL_SMTP_PASSWORD: <SMTP PASSWORD>
CONTACT_FORM_NOTIFY_EMAIL: <CONTACT EMAIL>
NEXT_SECRET_TOKEN: <NEXT PREVIEW SECRET>
ports:
- "8080:8080"
depends_on:
postgres:
condition: service_healthy
postgres:
build: ./db
environment:
POSTGRES_ROOT_PASSWORD: <POSTRES ROOT PASSWORD>
POSTGRES_USER: <POSTRES USER>
POSTGRES_PASSWORD: <POSTRES PASSWORD>
POSTGRES_DB: <POSTRES DB>
volumes:
# Persistent data
- pgdata:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "export PGPASSWORD=$${POSTGRES_PASSWORD}; pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}"]
interval: 30s
timeout: 60s
retries: 5
start_period: 80s
volumes:
pgdata: