Skip to content

Commit

Permalink
add container_name to services
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvin-muchiri committed Sep 22, 2023
1 parent c9d237e commit e2d1145
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3'

services:
web:
nero:
build:
context: .
dockerfile: Dockerfile.dev
Expand All @@ -26,4 +26,4 @@ services:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "5050:80"
- '5050:80'
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
version: '3'

services:
web:
nero:
build: .
container_name: nero
depends_on:
- db
- redis
Expand Down Expand Up @@ -45,6 +46,7 @@ services:

db:
image: postgres:14.1-alpine
container_name: db
environment:
- POSTGRES_USER
- POSTGRES_PASSWORD
Expand All @@ -55,9 +57,11 @@ services:

redis:
image: 'redis:6.2.6-alpine'
container_name: redis

celery:
build: .
container_name: celery
command: celery -A nero worker -l info
depends_on:
- db
Expand Down
2 changes: 1 addition & 1 deletion docs/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ If you do not provide `POSTGRES_USER` and `POSTGRES_DB`, you will have to login

- **MAIL_SERVER_URL**
- The base URL of the server used to send emails. A sub domain is usually preferred just incase it is black listed, you can quickly set up another
- default: http://web:8000/api/v1/
- default: http://nero:8000/api/v1/
2 changes: 1 addition & 1 deletion nero/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@

AWS_SES_REGION = config("AWS_SES_REGION", default="us-east-1")

MAIL_SERVER_URL = config("MAIL_SERVER_URL", default="http://web:8000/api/v1/")
MAIL_SERVER_URL = config("MAIL_SERVER_URL", default="http://nero:8000/api/v1/")

MAIL_SENDER_EMAIL = config("MAIL_SENDER_EMAIL", default=None)

Expand Down

0 comments on commit e2d1145

Please sign in to comment.