forked from data-for-change/anyway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 875 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 875 Bytes
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
version: '3'
services:
anyway:
build: .
image: docker.pkg.github.com/hasadna/anyway/anyway:latest
container_name: anyway
ports:
- "8080:5000"
environment:
- DATABASE_URL=postgresql://anyway:anyway@db/anyway
- FLASK_ENV=development
- TWITTER_CONSUMER_KEY
- TWITTER_CONSUMER_SECRET
- TWITTER_ACCESS_KEY
- TWITTER_ACCESS_SECRET
- GOOGLE_APPLICATION_CREDENTIALS=GOOGLE_APPLICATION_CREDENTIALS_KEY.json
volumes:
- .:/anyway
restart: always
depends_on:
- db
db:
build: db_docker
image: docker.pkg.github.com/hasadna/anyway/db:latest
container_name: db
environment:
- DBRESTORE_AWS_ACCESS_KEY_ID
- DBRESTORE_AWS_SECRET_ACCESS_KEY
volumes:
- db_data:/var/lib/postgresql/data
ports:
- "9876:5432"
restart: always
volumes:
db_data: