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
22COMPOSE_PROJECT_NETWORK = 173.2.0
33COMPOSE_USER_NAME = $USER
44COMPOSE_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:
3131 default :
3232 ipv4_address : ${COMPOSE_PROJECT_NETWORK}.3
3333 postgres :
34- container_name : postgres_dental
34+ container_name : postgres_${COMPOSE_PROJECT_NAME}
3535 image : postgres:14.5-alpine
3636 restart : unless-stopped
3737 environment :
@@ -49,7 +49,7 @@ services:
4949 default :
5050 ipv4_address : ${COMPOSE_PROJECT_NETWORK}.4
5151 redis :
52- container_name : redis
52+ container_name : redis_${COMPOSE_PROJECT_NAME}
5353 image : redis:alpine
5454# restart: always
5555# ports:
You can’t perform that action at this time.
0 commit comments