-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 971 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 971 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
40
41
42
43
services:
db:
image: mysql:8.0
container_name: wp_db
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
volumes:
- db_data:/var/lib/mysql
wordpress:
build:
context: .
dockerfile: Dockerfile.wordpress
container_name: wp_app
depends_on:
- db
ports:
- "8080:80"
restart: always
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
XDEBUG_CONFIG: "client_host=host.docker.internal discover_client_host=1"
volumes:
- ./html:/var/www/html
extra_hosts:
- "host.docker.internal:host-gateway"
adminer:
image: adminer
container_name: wp_adminer
restart: always
ports:
- "8081:8080" # Adminer będzie pod adresem localhost:8081
volumes:
db_data: