Skip to content

Commit a57e02f

Browse files
committedApr 12, 2020
chore: project name from env
1 parent e7e9116 commit a57e02f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎.docker/docker-compose.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: "3"
22
services:
33
php:
4-
container_name: symfony-based-phone-checker_php
5-
image: symfony-based-phone-checker_php
4+
container_name: ${PROJECT_NAME}_php
5+
image: ${PROJECT_NAME}_php
66
restart: on-failure
77
build:
88
context: ./php
@@ -17,8 +17,8 @@ services:
1717
depends_on:
1818
- mysql
1919
web:
20-
container_name: symfony-based-phone-checker_web
21-
image: symfony-based-phone-checker_web
20+
container_name: ${PROJECT_NAME}_web
21+
image: ${PROJECT_NAME}_web
2222
build: nginx
2323
volumes:
2424
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
@@ -29,7 +29,7 @@ services:
2929
env_file:
3030
- ./.env
3131
mysql:
32-
container_name: symfony-based-phone-checker_mysql
32+
container_name: ${PROJECT_NAME}_mysql
3333
image: mysql:${MYSQL_VERSION}
3434
restart: on-failure
3535
env_file:

0 commit comments

Comments
 (0)