-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (39 loc) · 824 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
39 lines (39 loc) · 824 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
39
services:
php:
restart: always
depends_on:
- database
build:
dockerfile: Dockerdevfile
environment:
DB_NAME: leather_store
DB_USER: habib
DB_PASSWORD: web
PGPASSWORD: web
DB_HOST: database
DB_PORT: 5432
ADMIN_USER_NAME: admin
ADMIN_USER_EMAIL: admini@leather-store.com
ADMIN_USER_PWD: admin
URL: http://localhost/
DEBUG: false
env_file:
- .dockerenv
volumes:
- .:/var/www/html
ports:
- "80:80"
database:
restart: always
image: postgres:18.2-alpine3.23
ports:
- "5432:5432"
environment:
POSTGRES_DB: leather_store
POSTGRES_USER: habib
POSTGRES_PASSWORD: web
volumes:
- database_data:/var/lib/postgresql
volumes:
database_data:
driver: local