-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
46 lines (42 loc) · 994 Bytes
/
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
44
45
46
include:
- path: ./docker-compose.metrics.yml
env_file: .env
services:
api:
container_name: nestjs_boilerplate_api
build: .
depends_on:
- database
restart: always
env_file:
- .env
environment:
- NODE_ENV=production
ports:
- "${API_PORT}:${API_PORT}"
networks:
- nestjs_boilerplate_network
database:
container_name: nestjs_boilerplate_database
image: bitnami/postgresql:17
restart: always
env_file:
- .env
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DATABASE}
- POSTGRES_PORT_NUMBER=${POSTGRES_PORT}
ports:
- "${POSTGRES_PORT}:${POSTGRES_PORT}"
expose:
- ${POSTGRES_PORT}
networks:
- nestjs_boilerplate_network
volumes:
- nestjs_boilerplate_database_volume:/bitnami/postgresql
networks:
nestjs_boilerplate_network:
driver: bridge
volumes:
nestjs_boilerplate_database_volume:
driver: local