Skip to content

Commit

Permalink
add postgresql in docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed00Abdelmonem committed Feb 27, 2024
1 parent 7299f72 commit 9def6fa
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,30 @@ services:
container_name: DjBackend
depends_on:
- myredis
# - db
# environment:
# POSTGRES_DB: "New_Amazon_Clone"
# POSTGRES_USER: "postgres"
# POSTGRES_PASSWORD: 01026120743
- db
environment:
POSTGRES_DB: "New_Amazon_Clone"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: 01026120743

myredis:
image: redis:7.0.14-alpine3.18
container_name: RedisServer

# db:
# image: postgres:latest
# environment:
# POSTGRES_DB: New_Amazon_Clone
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: "01026120743"
# ports:
# - "5432:5432"
# container_name: PostgreSQLServer
db:
image: postgres:latest
environment:
POSTGRES_DB: New_Amazon_Clone
POSTGRES_USER: postgres
POSTGRES_PASSWORD: "01026120743"
ports:
- "5432:5432"
container_name: PostgreSQLServer

celery:
build: .
command: celery -A project worker --loglevel=info
depends_on:
- myredis
- backend
# - db
- db
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Generated by Django 4.2.4 on 2024-02-27 17:44

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('orders', '0008_alter_order_code_alter_order_status'),
]

operations = [
migrations.AlterField(
model_name='cart',
name='status',
field=models.CharField(choices=[('InProgress', 'InProgress'), ('Completed', 'Completed')], max_length=10),
),
migrations.AlterField(
model_name='order',
name='code',
field=models.CharField(default='21VB5Y2T', max_length=9),
),
migrations.AlterField(
model_name='order',
name='status',
field=models.CharField(choices=[('Delivered', 'Delivered'), ('Processed', 'Processed'), ('Recieved', 'Recieved'), ('Shipped', 'Shipped')], default='Recieved', max_length=10),
),
]

0 comments on commit 9def6fa

Please sign in to comment.