-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (52 loc) · 1.02 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
version: "3"
services:
mariadb:
build:
context: "."
dockerfile: "docker/mariadb.Dockerfile"
ports:
- "3360:3306"
networks:
- "default"
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "learning_site"
MYSQL_USER: "jack"
MYSQL_PASSWORD: "hello"
php:
depends_on:
- "mariadb"
- "frontend"
build:
context: "."
dockerfile: "docker/php.Dockerfile"
ports:
- "8080:80"
networks:
- "default"
volumes:
- "./site:/var/www/html"
- "./python:/home/"
composer:
image: "composer:1.8"
volumes:
- "./site:/app"
- "~/.composer:/tmp"
command: "composer about"
networks:
- "default"
frontend:
build:
context: "."
dockerfile: "docker/frontend.Dockerfile"
expose:
- "4000"
ports:
- "4000:3000"
volumes:
- "./front-end/src:/usr/src/app/src"
- "./front-end/public:/usr/src/app/public"
networks:
- "default"
networks:
default: