-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (44 loc) · 918 Bytes
/
docker-compose.yml
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
version: '3.9'
services:
database:
container_name: basic-database
image: mariadb:10.11
ports:
- 3306:3306
expose:
- 3306
volumes:
- database:/var/lib/mysql
- .docker/data:/docker-entrypoint-initdb.d
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=basic
php:
container_name: basic-backend
build:
context: .docker/php
dockerfile: Dockerfile
ports:
- 8000:8000
expose:
- 8000
volumes:
- ./:/var/www
environment:
- PHP_IDE_CONFIG=serverName=basic-backend
- MYSQL_HOST=basic-database
- MYSQL_PORT=3306
- MYSQL_DATABASE=basic
- MYSQL_USER=root
- MYSQL_PASSWORD=root
depends_on:
- database
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
database:
driver: local
networks:
default:
name: logitrade
external: true