-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
executable file
·95 lines (86 loc) · 1.82 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
version: '3.9'
services:
nginx:
build:
context: .
dockerfile: resources/docker/nginx/Dockerfile
ports:
- '8080:80'
volumes:
- ./src:/var/www/html
- ./resources/docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- internal
php:
build:
context: .
dockerfile: resources/docker/php/Dockerfile
target: php-base
volumes:
- ./src:/var/www/html
env_file: $PWD/src/.env
networks:
- internal
extra_hosts:
- "host.docker.internal:host-gateway"
db:
image: mariadb:10.11
volumes:
- db:/var/lib/mysql
env_file: $PWD/src/.env
ports:
- 3306:3306
networks:
- internal
composer:
build:
context: .
dockerfile: resources/docker/php/Dockerfile
target: php-composer
entrypoint: [ "composer" ]
command: [ "--version" ]
# user: "1000"
volumes:
- ./src:/var/www/html
npm:
image: node:8
# build:
# context: .
# dockerfile: resources/docker/npm/Dockerfile
# target: npm-base
entrypoint: [ "npm" ]
working_dir: /app
command: [ "-v" ]
# user: "1000"
volumes:
- ./src:/app
gulp:
image: node:8
# build:
# context: .
# dockerfile: resources/docker/npm/Dockerfile
# target: npm-base
entrypoint: [ "node_modules/.bin/gulp" ]
working_dir: /app
command: [ "-v" ]
# user: "1000"
volumes:
- ./src:/app
artisan:
build:
context: .
dockerfile: resources/docker/php/Dockerfile
target: php-base
entrypoint: [ "php", "artisan" ]
command: [ "--version" ]
# user: "1000"
volumes:
- ./src:/var/www/html
env_file: $PWD/src/.env
networks:
- internal
volumes:
db:
networks:
internal:
driver: bridge