-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·48 lines (45 loc) · 1.03 KB
/
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
48
version: '3'
services:
#Baraka App
app:
build:
context: .
dockerfile: ./Dockerfile
image: baraka
container_name: baraka-app
restart: on-failure
tty: true
environment:
APP_DEBUG: "true"
DB_HOST: db
DB_USERNAME: root
DB_PASSWORD: baraka
DB_DATABASE: baraka
ports:
- 8000:80
depends_on:
- db
volumes:
- ./:/var/www/html
- ./local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- app-network
#MySQL Service
db:
image: mysql:5.7
container_name: baraka-db
restart: on-failure
tty: true
ports:
- "3307:3306"
volumes:
- ./dbdata:/var/lib/mysql
environment:
MYSQL_DATABASE: baraka
MYSQL_ROOT_PASSWORD: baraka
networks:
- app-network
#Docker Networks
networks:
app-network:
driver: bridge