-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (58 loc) · 1.21 KB
/
docker-compose.yml
File metadata and controls
65 lines (58 loc) · 1.21 KB
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
#version: '3'
services:
nginx:
image: nginx:latest
ports:
- "${APP_PORT}:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./app/:/var/www/html/
depends_on:
- php
- mysql
networks:
- app-network
php:
image: nanoninja/php-fpm:8.1
restart: always
volumes:
- ./app/:/var/www/html
networks:
- app-network
mysql:
image: mysql:8.0
container_name: mysql
command: --default-authentication-plugin=mysql_native_password
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_ROOT_PASSWORD}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
ports:
- "${DB_PORT}:3306"
volumes:
- mysql-data:/var/lib/mysql
networks:
- app-network
# phpmyadmin:
# image: phpmyadmin/phpmyadmin
# environment:
# PMA_HOST: mysql
# PMA_PORT: 3306
# ports:
# - "${DB_CONTROL_PANEL_PORT}:80"
# networks:
# - app-network
adminer:
image: adminer
restart: always
ports:
- "${DB_CONTROL_PANEL_PORT}:8080"
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
mysql-data: