-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
81 lines (80 loc) · 1.83 KB
/
docker-compose.yaml
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
version: "3.7"
services:
nginx:
image: nginx:stable-alpine
container_name: nginx
ports:
- "8080:80"
volumes:
- ./docker/nginx/logs:/var/log/nginx
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
- mariadb
networks:
- laravel
php:
container_name: php
tty: true
image: docker.io/bitnami/laravel
depends_on:
- mariadb
links:
- mariadb
env_file:
- .env
volumes:
- ./:/app
working_dir: /app
ports:
- 3000:3000
networks:
- laravel
mariadb:
container_name: mariadb
env_file: .env
image: mariadb:latest
ports:
- 3306:3306
volumes:
- ./docker/mariadb/data:/var/lib/mysql
networks:
- laravel
artisan:
container_name: artisan
tty: true
image: docker.io/bitnami/laravel
env_file: .env
volumes:
- ./:/app
depends_on:
- mariadb
working_dir: /app
entrypoint: ["php", "/app/artisan"]
networks:
- laravel
composer:
image: composer:latest
container_name: composer
env_file: .env
volumes:
- ./:/app
working_dir: /app
depends_on:
- php
networks:
- laravel
node:
image: node:lts
container_name: node
working_dir: /app
volumes:
- ./docker/node/:/var/log/myApp
- ./:/app
command: /bin/sh -c "/app/docker/node/yarn-bootstrapper.sh"
networks:
- laravel
ports:
- 8081:8081
networks:
laravel: