-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose-test.yml
More file actions
42 lines (41 loc) · 1.04 KB
/
docker-compose-test.yml
File metadata and controls
42 lines (41 loc) · 1.04 KB
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
version: "3.3"
services:
postgres-test:
container_name: "zyndicate-postgres-test"
image: postgres
env_file:
- ./.env.test
volumes:
- "pgdata-test:/var/lib/postgresql/data/"
environment:
POSTGRES_USER: ${TYPEORM_USERNAME_TEST}
POSTGRES_PASSWORD: ${TYPEORM_PASSWORD_TEST}
POSTGRES_DB: ${TYPEORM_DATABASE_TEST}
ports:
- "5434:5432"
networks:
- web
backend-test:
container_name: "zyndicate-api-test"
image: node:16
build: ./core/zyndicate-api/
command: "yarn workspace @zyndicate/backend test"
ports:
- "4000:4000"
expose:
- 4000
environment:
DB_HOST: postgres
volumes:
- .:/srv/backend
env_file: ./.env.test
working_dir: /srv/backend
depends_on:
- postgres-test
networks:
- web
volumes:
pgdata-test: {}
networks:
web:
external: true