-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1.12 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-template-api:
image: gerocuidadodev/node:18.17.0-alpine-dev
container_name: gerocuidado-template-api
volumes:
- '.:/home/node/app'
entrypoint: ./.docker/entrypoint.sh
environment:
- NODE_ENV=development
ports:
- '300x:300x'
- '700x:700x'
depends_on:
- gerocuidado-template-db
networks:
- gerocuidado-template-net
- gerocuidado-apis-net
gerocuidado-template-db:
build:
context: ./.docker/postgres
dockerfile: Dockerfile
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
container_name: gerocuidado-template-db
volumes:
- './db/postgres:/var/lib/postgresql/data'
- './.docker/postgres/config/postgresql.conf:/etc/postgresql/postgresql.conf'
environment:
- POSTGRES_DB=gerocuidado-template-db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '500x:500x'
networks:
- gerocuidado-template-net
networks:
gerocuidado-template-net:
driver: bridge
gerocuidado-apis-net:
name: gerocuidado-apis-net
external: true