-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
33 lines (32 loc) · 991 Bytes
/
docker-compose.yaml
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
version: '3.8'
services:
web:
image: garyclarke/nginx24-multi
ports:
- "8080:80" # Maps port 8080 on the host to port 80 in the container
- "8443:443" # Maps port 8443 on the host to port 443 in the container (if you're using HTTPS)
volumes:
- ./public:/var/www/html/public
app:
image: garyclarke/php83-multi
environment:
MARIADB_HOST: db
volumes:
- .:/var/www/html
extra_hosts:
- host.docker.internal:host-gateway
db:
image: mariadb:11.2
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
restart: on-failure
volumes:
- flightsdata:/var/lib/mysql
environment:
MARIADB_ROOT_PASSWORD: secret
MARIADB_DATABASE: flights-api
MARIADB_USER: user
MARIADB_PASSWORD: secret
ports:
- "3306:3306"
volumes:
flightsdata: