forked from thenewboston-developers/Core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
38 lines (32 loc) · 941 Bytes
/
docker-compose.test.yml
File metadata and controls
38 lines (32 loc) · 941 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
# This file is intended for use with Docker Hub automated builds testing:
# https://docs.docker.com/docker-hub/builds/automated-testing/
# TODO(dmu) LOW: Make this file DRY with `docker-compose.yml` or at least add linting for common parts being
# exactly the same per character
version: '3.9'
services:
db:
image: postgres:14.2-alpine
environment:
POSTGRES_DB: core
POSTGRES_USER: core
POSTGRES_PASSWORD: core
volumes:
- postgresql-data:/var/lib/postgresql/data
redis:
image: redis:6.2.6-alpine
volumes:
- redis-data:/var/lib/redis
sut:
build: .
environment:
CORESETTING_DATABASES: '{"default":{"HOST":"db"}}'
CORESETTING_CHANNEL_LAYERS: '{"default":{"CONFIG":{"hosts":[["redis", 6379]]}}}'
command: make test-fail-fast
depends_on:
- db
- redis
volumes:
postgresql-data:
driver: local
redis-data:
driver: local