-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
40 lines (37 loc) · 903 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
version: '3'
services:
app:
build:
dockerfile: Dockerfile
context: .
container_name: entaingo
restart: always
ports:
- "4000:4000"
depends_on:
- db
# - redis # Add redis to dependencies
networks:
- entaingo_network
db:
image: postgres:13
container_name: postgress
environment:
POSTGRES_USER: user@56
POSTGRES_PASSWORD: password@Entaingo
POSTGRES_DB: entaingo
ports:
- "5433:5432" # Maps host port 5433 to container's internal 5432
networks:
- entaingo_network
# redis: # Define the Redis service
# image: redis:latest # Use the latest Redis image
# container_name: redis
# restart: always
# ports:
# - "6379:6379" # Maps host port 6379 to container's internal 6379
# networks:
# - entaingo_network
networks:
entaingo_network:
driver: bridge