-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
38 lines (35 loc) · 936 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
38 lines (35 loc) · 936 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
version: '3.8'
services:
db:
image: postgres:15.6
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
POSTGRES_DB: ecommerce ## Veritabanı ismi
POSTGRES_USER: postgres ## Veritabanı kullanıcı adı
POSTGRES_PASSWORD: 1234 ## Veritabanı şifresi
web:
build: .
command: gunicorn ecommerce.wsgi:application --bind 0.0.0.0:8000
volumes:
- .:/app
ports:
- "8000:8000"
depends_on:
- db
environment:
DATABASE_URL: postgres://postgres:1234@db:5432/ecommerce ## Veritabanı bağlantı URL'si
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: admin@admin.com ## PGAdmin varsayılan e-posta
PGADMIN_DEFAULT_PASSWORD: admin ## PGAdmin varsayılan şifre
ports:
- "5050:80"
depends_on:
- db
volumes:
- pgadmin_data:/var/lib/pgadmin
volumes:
postgres_data:
pgadmin_data: