Skip to content

Commit

Permalink
fix: fixing the naming of container
Browse files Browse the repository at this point in the history
  • Loading branch information
nunenuh committed Aug 23, 2023
1 parent 90c8f62 commit 48fecd0
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version: '3.8'

networks:
api:
iquote-fiber-api:
driver: bridge

services:
db:
container_name: api_db
iquote-fiber-db:
container_name: iquote-fiber-db
image: postgres:14.5-alpine
restart: always
environment:
Expand All @@ -18,18 +18,18 @@ services:
# - ./data=/data
# command: postgres -c 'max_connections=5000'
networks:
- api
- iquote-fiber-api

api:
container_name: api
iquote-fiber-api:
container_name: iquote-fiber-api
image: docker.io/nunenuh/iquote-fiber-clean-arch:latest
restart: always
environment:
- APP_NAME=${APP_NAME}
- APP_ENV=${APP_ENV}
- APP_HOST=${APP_HOST}
- APP_PORT=${APP_PORT}
- DB_HOST=db
- DB_HOST=iquote-fiber-db
- DB_PORT=${DB_PORT}
- DB_USER=${DB_USER}
- DB_PASS=${DB_PASS}
Expand All @@ -44,6 +44,6 @@ services:
ports:
- "${APP_PORT}:${APP_PORT}"
depends_on:
- db
- iquote-fiber-db
networks:
- api
- iquote-fiber-api

0 comments on commit 48fecd0

Please sign in to comment.