-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
42 lines (39 loc) · 906 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
version: '3.5'
services:
laravel-app:
build:
context: '.'
container_name: app
depends_on:
- mariadb
volumes:
- ./:/var/www/html
working_dir: /var/www/html
stdin_open: true
tty: true
ports:
- 80:80
- 443:443
networks:
backend:
aliases:
- app
mariadb:
image: mariadb:10.2.26
container_name: app-db
volumes:
- ./run/var:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=securerootpassword
- MYSQL_DATABASE=${DB_DATABASE}
- MYSQL_USER=${DB_USERNAME}
- MYSQL_PASSWORD=${DB_PASSWORD}
ports:
- 3309:3306
networks:
backend:
aliases:
- db
networks:
backend:
name: backend-network