-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (67 loc) · 1.56 KB
/
docker-compose.yml
File metadata and controls
71 lines (67 loc) · 1.56 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
services:
php-app:
build:
context: .
dockerfile: Dockerfile
container_name: f1_api_app
ports:
- "8080:8080"
volumes:
- .:/var/www/html
- ./logs:/var/www/html/logs
- /var/www/html/vendor
environment:
- DATABASE_HOST=mariadb
- DATABASE_PORT=3306
- DATABASE_DATABASE=f1_db
- DATABASE_USERNAME=f1_user
- DATABASE_PASSWORD=f1_password
- APP_ENV=development
- PHP_IDE_CONFIG=serverName=localhost
depends_on:
mariadb:
condition: service_healthy
networks:
- f1_network
command: /bin/bash /docker-entrypoint.sh
mariadb:
image: mariadb:11.4
container_name: f1_api_db
ports:
- "3306:3306"
environment:
MARIADB_ALLOW_EMPTY_PASSWORD: "yes"
MARIADB_DATABASE: f1_db
MARIADB_USER: f1_user
MARIADB_PASSWORD: f1_password
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: "yes"
volumes:
- f1_db_data:/var/lib/mysql
- ./f1_db.sql:/docker-entrypoint-initdb.d/f1_db.sql
healthcheck:
test: ["CMD", "healthcheck.sh", "--connect", "--innodb_initialized"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
networks:
- f1_network
phpmyadmin:
image: phpmyadmin:latest
container_name: f1_api_phpmyadmin
ports:
- "8081:80"
environment:
PMA_HOST: mariadb
PMA_USER: f1_user
PMA_PASSWORD: f1_password
PMA_PORT: 3306
depends_on:
- mariadb
networks:
- f1_network
volumes:
f1_db_data:
networks:
f1_network:
driver: bridge