-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
39 lines (37 loc) · 1.1 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
version: '3.7'
services:
gerocuidado-template-api-test:
image: gerocuidadodev/node:18.17.0-alpine-dev
container_name: gerocuidado-template-api-test
volumes:
- '.:/home/node/app'
entrypoint: dockerize -wait tcp://gerocuidado-template-db-test:500x -timeout 40s ./.docker/entrypoint.test.sh
environment:
- NODE_ENV=test
- TEST=$TEST
user: root
ports:
- '300x:300x'
depends_on:
- gerocuidado-template-db-test
networks:
- gerocuidado-template-net-test
gerocuidado-template-db-test:
build:
context: ./.docker/postgres
dockerfile: Dockerfile
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
container_name: gerocuidado-template-db-test
volumes:
- './.docker/postgres/config/postgresql.conf:/etc/postgresql/postgresql.conf'
environment:
- POSTGRES_DB=gerocuidado-template-db-test
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '500x:500x'
networks:
- gerocuidado-template-net-test
networks:
gerocuidado-template-net-test:
driver: bridge