-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
51 lines (45 loc) · 1.14 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
version: '3'
services:
great_edu_web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./src:/src
- ./nginx/site.conf:/etc/nginx/conf.d/default.conf
networks:
- code-network
depends_on:
- great_edu_php
great_edu_php:
# image: php:fpm
build:
context: src
dockerfile: Dockerfile
volumes:
- ./src:/src
networks:
- code-network
depends_on:
- great_edu_mysql
great_edu_mysql:
container_name: great_edu_mysql
image: mysql
command: mysqld --default-authentication-plugin=mysql_native_password
# volumes:
# - ./data:/var/lib/mysql
restart: on-failure
volumes:
- ./dumps:/docker-entrypoint-initdb.d
environment:
MYSQL_ROOT_PASSWORD: test
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
ports:
- '33315:3306'
networks:
- code-network
networks:
code-network:
driver: bridge