-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
41 lines (37 loc) · 847 Bytes
/
docker-compose.yaml
File metadata and controls
41 lines (37 loc) · 847 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
version: '3.1'
services:
db:
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: wololo
volumes:
# - ./dbdata:/var/lib/mysql
- ./setup:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost" , "-u" , "root" , "-pwololo"]
interval: 5s
timeout: 10s
retries: 15
adminer:
image: adminer
restart: always
ports:
- 8080:8080
web:
container_name: php-apache
build:
context: .
dockerfile: ./docker/php-apache.dockerfile
ports:
- 8000:80
volumes:
- ./pages:/var/www/html
- ./credentials:/var/www/credentials
depends_on:
# - db
db:
condition: service_healthy
volumes:
dbdata: