forked from fga-eps-mds/2024-1-GEROcuidado-APIUsuario
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
40 lines (38 loc) · 1.11 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
version: '3.7'
services:
gerocuidado-usuario-api-test:
image: gerocuidadodev/node:18.17.0-alpine-dev
container_name: gerocuidado-usuario-api-test
volumes:
- '.:/home/node/app'
entrypoint: dockerize -wait tcp://gerocuidado-usuario-db-test:5001 -timeout 40s ./.docker/entrypoint.test.sh
environment:
- NODE_ENV=test
- TEST=$TEST
user: root
ports:
- '3001:3001'
- '8001:8001'
depends_on:
- gerocuidado-usuario-db-test
networks:
- gerocuidado-usuario-net-test
gerocuidado-usuario-db-test:
build:
context: ./.docker/postgres
dockerfile: Dockerfile
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
container_name: gerocuidado-usuario-db-test
volumes:
- './.docker/postgres/config/postgresql.conf:/etc/postgresql/postgresql.conf'
environment:
- POSTGRES_DB=gerocuidado-usuario-db-test
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5001:5001'
networks:
- gerocuidado-usuario-net-test
networks:
gerocuidado-usuario-net-test:
driver: bridge