forked from sciety/sciety
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
36 lines (35 loc) · 1008 Bytes
/
docker-compose.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
version: '3.8'
services:
app:
container_name: sciety_app
build:
context: ""
environment:
ALLOW_SITE_CRAWLERS: "true"
APP_ORIGIN: "http://localhost:8080"
APP_SECRET: "secret"
CROSSREF_API_BEARER_TOKEN:
EXPERIMENT_ENABLED: "true"
FATHOM_SITE_ID:
GOOGLE_TAG_MANAGER_ID:
LOG_LEVEL:
PGUSER: user
PGHOST: db
PGPASSWORD: secret
PGDATABASE: sciety
TWITTER_API_KEY: '${TWITTER_API_KEY:-twitter-api-key}'
TWITTER_API_SECRET_KEY: '${TWITTER_API_SECRET_KEY:-twitter-api-secret-key}'
TWITTER_API_BEARER_TOKEN: '${TWITTER_API_BEARER_TOKEN:-twitter-api-bearer-token}'
ports:
- '8080:80'
restart: unless-stopped
db:
container_name: sciety_db
image: postgres:12.3-alpine
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: secret
POSTGRES_DB: sciety
healthcheck:
test: pg_isready --username $$POSTGRES_USER --dbnam $$POSTGRES_DB || exit 1
interval: 5s