generated from HenriqueAmorim20/GEROcuidadoAPITemplate
-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
43 lines (41 loc) · 1.1 KB
/
docker-compose.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
version: '3.7'
services:
gerocuidado-saude-api:
image: gerocuidadodev/node:18.17.0-alpine-dev
container_name: gerocuidado-saude-api
volumes:
- '.:/home/node/app'
entrypoint: ./.docker/entrypoint.sh
environment:
- NODE_ENV=development
ports:
- '3003:3003'
- '7003:7003'
depends_on:
- gerocuidado-saude-db
networks:
- gerocuidado-saude-net
- gerocuidado-apis-net
gerocuidado-saude-db:
build:
context: ./.docker/postgres
dockerfile: Dockerfile
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
container_name: gerocuidado-saude-db
volumes:
- './db/postgres:/var/lib/postgresql/data'
- './.docker/postgres/config/postgresql.conf:/etc/postgresql/postgresql.conf'
environment:
- POSTGRES_DB=gerocuidado-saude-db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5003:5003'
networks:
- gerocuidado-saude-net
networks:
gerocuidado-saude-net:
driver: bridge
gerocuidado-apis-net:
name: gerocuidado-apis-net
external: true