File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2,3 +2,6 @@ COMPOSE_PROJECT_NAME=docker
2
2
COMPOSE_PROJECT_NETWORK = 173.2.0
3
3
COMPOSE_USER_NAME = $USER
4
4
COMPOSE_USER_UID = 1000
5
+ DB_DATABASE = my
6
+ DB_PASSWORD = my
7
+ DB_USERNAME = my
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ services:
31
31
default :
32
32
ipv4_address : ${COMPOSE_PROJECT_NETWORK}.3
33
33
postgres :
34
- container_name : postgres_dental
34
+ container_name : postgres_${COMPOSE_PROJECT_NAME}
35
35
image : postgres:14.5-alpine
36
36
restart : unless-stopped
37
37
environment :
@@ -49,7 +49,7 @@ services:
49
49
default :
50
50
ipv4_address : ${COMPOSE_PROJECT_NETWORK}.4
51
51
redis :
52
- container_name : redis
52
+ container_name : redis_${COMPOSE_PROJECT_NAME}
53
53
image : redis:alpine
54
54
# restart: always
55
55
# ports:
You can’t perform that action at this time.
0 commit comments