-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (42 loc) · 1.17 KB
/
Copy pathdocker-compose.yml
File metadata and controls
46 lines (42 loc) · 1.17 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
version: '3'
services:
nginx-service:
image: nginx:stable-alpine
container_name: dev-nginx
ports:
- "8080:80"
volumes:
- ./app:/var/www/project
- ./nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php-service
- mysql-service
networks:
- dev-net
php-service:
build:
context: .
dockerfile: ./php/Dockerfile
container_name: dev-php
ports:
- "9000:9000"
volumes:
- ./app:/var/www/project
networks:
- dev-net
mysql-service:
image: mysql:8
container_name: dev-mysql
ports:
- "4306:3306"
volumes:
- ./mysql:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
restart: always
environment:
- MYSQL_ROOT_PASSWORD=abc123
- MYSQL_PASSWORD=abc123
networks:
- dev-net
networks:
dev-net: