Skip to content

Commit

Permalink
build(dockerfile): make container names more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
mukappalambda committed Oct 27, 2023
1 parent 366005d commit cb33cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ version: "3"
services:
vocabdemy:
image: vocabdemy:test
container_name: vocabdemy
restart: always
working_dir: /code
ports:
Expand All @@ -24,7 +25,7 @@ services:
sleep infinity
db:
image: postgres:${POSTGRES_VERSION}
hostname: postgres
container_name: postgres
ports:
- "5432:5432"
environment:
Expand Down
5 changes: 1 addition & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ version: '3'
services:
vocabdemy:
image: vocabdemy:0.1.0
container_name: python
container_name: vocabdemy
build:
args:
- PYTHON_VERSION=${PYTHON_VERSION}
context: ./
dockerfile: ./Dockerfile
restart: always
Expand All @@ -21,7 +19,6 @@ services:
- db
db:
image: postgres:${POSTGRES_VERSION}
hostname: postgres
container_name: postgres
ports:
- '5432:5432'
Expand Down

0 comments on commit cb33cb6

Please sign in to comment.