forked from data-for-change/anyway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-tests.yml
More file actions
35 lines (32 loc) · 830 Bytes
/
Copy pathdocker-compose-tests.yml
File metadata and controls
35 lines (32 loc) · 830 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
version: '3'
services:
anyway-tests:
build: .
image: docker.pkg.github.com/hasadna/anyway/anyway:latest
container_name: anyway-tests
ports:
- "8081:5000"
environment:
- DATABASE_URL=postgresql://anyway:anyway@db-tests/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-tests
db-tests:
build: db_docker
image: docker.pkg.github.com/hasadna/anyway/db:latest
container_name: db-tests
volumes:
- db_tests_data:/var/lib/postgresql/data
ports:
- "9877:5432"
restart: always
volumes:
db_tests_data: