-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (52 loc) · 1.28 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
version : '3.7'
services:
app:
build: ./.docker/php
networks:
- backend-net
working_dir: /var/www
volumes:
- .:/var/www:cached
- "./.docker/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
#Nginx Service
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- .:/var/www:cached
- ./.docker/nginx/config/:/etc/nginx/conf.d/
- ./.docker/nginx/certs/:/etc/nginx/certs/
- ./.docker/nginx/log:/var/log/nginx
networks:
- backend-net
db:
image: mysql:8
ports:
- "3309:3306"
networks:
- backend-net
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: app
redis:
image: 'redis:alpine'
ports:
- '6383:6379'
networks:
- backend-net
phpmyadmin:
image: phpmyadmin/phpmyadmin
ports:
- "8183:80"
environment:
PMA_HOST: db
PMA_USER: root
PMA_PASSWORD: root
networks:
- backend-net
networks:
backend-net:
driver: bridge