forked from vas3k/vas3k.club
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
53 lines (49 loc) · 1.06 KB
/
docker-compose.test.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
version: "3.7"
services:
tests:
build:
dockerfile: Dockerfile
context: .
command: make test-ci
container_name: tests
environment:
- MODE=dev
- DEBUG=true # regardless of this value django will override it on false
- TESTS_RUN=da
- PYTHONUNBUFFERED=1
- POSTGRES_DB=vas3k_club
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_HOST=postgres
- REDIS_DB=0
- REDIS_HOST=redis
volumes:
- .:/app:delegated
depends_on:
- postgres
- redis
- webpack
redis:
image: redis:alpine
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- 6379
postgres:
image: postgres:11
container_name: club_postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=vas3k_club
ports:
- 5432
webpack:
build:
context: ./frontend
dockerfile: Dockerfile
command: npm run watch
restart: "no"
volumes:
- .:/app:delegated
working_dir: /app/frontend