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-forum-api:
image: gerocuidadodev/node:18.17.0-alpine-dev
container_name: gerocuidado-forum-api
volumes:
- '.:/home/node/app'
entrypoint: ./.docker/entrypoint.sh
environment:
- NODE_ENV=development
ports:
- '3002:3002'
- '7002:7002'
depends_on:
- gerocuidado-forum-db
networks:
- gerocuidado-forum-net
- gerocuidado-apis-net
gerocuidado-forum-db:
build:
context: ./.docker/postgres
dockerfile: Dockerfile
command: postgres -c 'config_file=/etc/postgresql/postgresql.conf'
container_name: gerocuidado-forum-db
volumes:
- './db/postgres:/var/lib/postgresql/data'
- './.docker/postgres/config/postgresql.conf:/etc/postgresql/postgresql.conf'
environment:
- POSTGRES_DB=gerocuidado-forum-db
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
ports:
- '5002:5002'
networks:
- gerocuidado-forum-net
networks:
gerocuidado-forum-net:
driver: bridge
gerocuidado-apis-net:
name: gerocuidado-apis-net
external: true