-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
53 lines (49 loc) · 1.03 KB
/
docker-compose.prod.yml
File metadata and controls
53 lines (49 loc) · 1.03 KB
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
47
48
49
50
51
52
53
services:
nest-boilerplate:
build:
context: ./
dockerfile: Dockerfile
container_name: nest-boilerplate
env_file:
- .env.production.local
volumes:
- .:/app
- /app/node_modules
ports:
- '8080:8080'
networks:
- app-network
restart: unless-stopped
depends_on:
- postgres
# - redis
postgres:
image: postgres:16.4
container_name: postgres
environment:
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_DB: ${DATABASE_NAME}
volumes:
- postgres:/var/lib/postgresql/data
ports:
- '5432:5432'
networks:
- app-network
restart: unless-stopped
# redis:
# image: bitnami/redis:latest
# container_name: redis
# environment:
# - REDIS_PASSWORD=${REDIS_PASSWORD}
# - ALLOW_EMPTY_PASSWORD=yes
# ports:
# - '6379:6379'
# networks:
# - app-network
# restart: unless-stopped
networks:
app-network:
driver: bridge
volumes:
postgres: