-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.ci.yml
56 lines (51 loc) · 1.3 KB
/
docker-compose.ci.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
version: '3.6'
services:
selenium:
image: selenium/standalone-firefox:latest
shm_size: 2gb
app: &app
image: quay.io/litheblas/blapp:latest
build:
context: .
environment:
BLAPP_ALLOWED_HOSTS: '*'
BLAPP_DATABASE_URL: &database_url postgres://blapp:test@postgres:5432/blapp
BLAPP_TEST_DATABASE_URL: *database_url
BLAPP_LEGACY_DATABASE_URL: sqlite:////
BLAPP_DEBUG_MODE: 'false'
BLAPP_EMAIL_URL: consolemail://
BLAPP_REDIS_URL: redis://redis:6379/0
BLAPP_SECRET_KEY: test
BLAPP_SECURE_PROXY_HEADER: HTTP_X_FORWARDED_PROTO=https
BLAPP_TEST_MODE: 'true'
BLAPP_TEST_SELENIUM_URL: http://selenium:4444/wd/hub
BLAPP_TEST_WEBSERVER_URL: http://app
depends_on:
- postgres
- redis
tests:
<<: *app
image: quay.io/litheblas/blapp:latest-dev
build:
context: .
args:
with_dev_packages: 'true'
depends_on:
- app
- postgres
- selenium
- redis
command: pipenv run docker-test
postgres:
image: postgres:11-alpine
environment:
- 'POSTGRES_USER=blapp'
- 'POSTGRES_PASSWORD=test'
volumes:
- type: tmpfs
target: /var/lib/postgresql/data
redis:
image: redis:4-alpine
volumes:
- type: tmpfs
target: /data