-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.test.yml
48 lines (48 loc) · 1.16 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
services:
test-backend:
build:
context: .
container_name: test-backend
stdin_open: true
command: bash
user: ${CURRENT_USER:-root}
depends_on:
- test-db
environment:
- POSTGRES_HOST=test-db
extra_hosts:
- "${ITAMS_MD_HOST:-sftp.itams.ohs.acf.hhs.gov}:0.0.0.0"
volumes:
- ".:/app:rw"
- "node_modules-backend:/app/node_modules:rw"
- "yarn-cache:/home/node/.cache/yarn:rw"
networks:
- ttadp-test
test-frontend:
build:
context: .
container_name: test-frontend
command: bash
user: ${CURRENT_USER:-root}
stdin_open: true
volumes:
- "./frontend:/app:rw"
- "./scripts:/app/scripts"
- "node_modules-frontend:/app/node_modules:rw"
- "yarn-cache:/home/node/.cache/yarn:rw"
environment:
- BACKEND_PROXY=http://test-backend:8080
- REACT_APP_WEBSOCKET_URL
networks:
- ttadp-test
test-db:
image: postgres:15.6
container_name: test-db
env_file: .env
ports:
- "15432:5432"
networks:
- ttadp-test
# Use non-default network so we don't conflict with the developer environment
networks:
ttadp-test: