-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (67 loc) · 1.66 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: '3.1'
services:
web:
image: 'nginx:alpine'
restart: always
working_dir: /var/www/html
volumes:
- '.:/var/www/html'
- './docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
ports:
- '8000:80'
depends_on:
- database
- redis
networks:
- app-network
app:
build: docker/php
restart: always
working_dir: /var/www/html
volumes:
- '.:/var/www/html'
- './docker/php/php-ini-overrides.ini:/etc/php/8.0/fpm/conf.d/99-overrides.ini'
networks:
- app-network
database:
image: 'mysql:5.7'
restart: always
working_dir: /var/www/html
volumes:
- '.:/var/www/html'
- ./docker/data/mysql:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=larafood
- MYSQL_USER=larafood
- MYSQL_PASSWORD=larafood
ports:
- '9002:3306'
networks:
- app-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
restart: always
ports:
- 8080:80
environment:
- PMA_ARBITRARY=1
- PMA_HOST=database
- PMA_USER=root
- PMA_PASSWORD=root
links:
- database
depends_on:
- database
networks:
- app-network
redis:
image: redis
restart: always
ports:
- "6379:6379"
networks:
- app-network
networks:
app-network:
driver: bridge