-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
69 lines (68 loc) · 1.51 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
version: '3.4'
services:
database:
image: mysql:5.7
restart: always
env_file: .env
environment:
- MYSQL_ROOT_PASSWORD=ChangeMe
- MYSQL_DATABASE=$DB_DATABASE
- MYSQL_USER=$DB_USERNAME
- MYSQL_PASSWORD=$DB_PASSWORD
volumes:
- mysql:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- 8080:8080
depends_on:
- database
mail:
image: djfarrelly/maildev:latest
ports:
- 1080:80
mix:
image: node:12-alpine
working_dir: /app
entrypoint: yarn run watch
command: yarn run hot
volumes:
- .:/app
ports:
- 8080:8080
cache:
image: redis:3.2-alpine
volumes:
- redis:/data
healthcheck:
test: redis-cli ping
interval: 1s
timeout: 3s
retries: 30
api:
build: ./node-api/
working_dir: /app
command: yarn run start
volumes:
- ./node-api:/app
depends_on:
- database
ports:
- 3000:3000
app:
build: .
command: php artisan serve --host=0.0.0.0 -vvv
volumes:
- .:/app
- composer:/root/.composer
ports:
- 8000:8000
depends_on:
- database
- cache
- mail
volumes:
composer:
mysql:
redis: