-
Notifications
You must be signed in to change notification settings - Fork 239
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
38 lines (35 loc) · 881 Bytes
/
docker-compose.test.yml
File metadata and controls
38 lines (35 loc) · 881 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
services:
app:
image: 'flask-react-template'
build:
context: .
dockerfile: Dockerfile
args:
APP_ENV: 'testing'
environment:
APP_ENV: 'testing'
MONGODB_URI: 'mongodb://app-db:27017/flask-react-template-test'
CELERY_BROKER_URL: 'redis://redis:6379/1'
CELERY_RESULT_BACKEND: 'redis://redis:6379/1'
command: 'npm run test'
depends_on:
app-db:
condition: service_started
redis:
condition: service_started
# Use named volume to avoid permission issues with bind mounts
volumes:
- test_output:/app/output
app-db:
image: mongo:5.0
command: mongod --quiet --logpath /dev/null
ports:
- '27017:27017'
redis:
image: redis:7-alpine
ports:
- '6379:6379'
command: redis-server
# Define named volume for test output
volumes:
test_output: