-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
50 lines (45 loc) · 908 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
48
49
50
version: '3'
networks:
laravel:
volumes:
dbdata:
driver: local
services:
apache:
build: './.docker/apache/'
container_name: emergencynutrition_apache
ports:
- "8888:80"
depends_on:
- php
- mysql
volumes:
- ./src:/var/www/html/
networks:
- laravel
php:
build: './.docker/php/'
container_name: emergencynutrition_php
volumes:
- ./src:/var/www/html/
ports:
- "9000:9000"
networks:
- laravel
mysql:
image: mysql:5.7.22
container_name: emergencynutrition_mysql
restart: unless-stopped
ports:
- "5306:3306"
environment:
MYSQL_DATABASE: emergencynutrition
MYSQL_USER: codexen
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
SERVICE_TAGS: dev
SERVICE_NAME: mysql
volumes:
- dbdata:/var/lib/mysql
networks:
- laravel