-
Notifications
You must be signed in to change notification settings - Fork 122
/
docker-compose.yml
48 lines (47 loc) · 1.13 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
version: '3'
services:
php:
container_name: catchadmin
image: jaguarjack/php82
ports:
- "8001:8001"
- "9000:9000"
volumes:
- .:/data
working_dir: /data
restart: always
networks:
- test
environment:
- APP_URL=127.0.0.1:8001
- DB_HOST=mysql
- DB_PORT=3306
- DB_DATABASE=catchadmin
- DB_USERNAME=root
- DB_PASSWORD=root
command: cp .env.example .env && php artisan catch:install && php artisan serve --port=8001
mysql:
container_name: mysql
image: mysql:5.7
ports:
- "3306:3306"
environment:
- MYSQL_ROOT_PASSWORD=root
restart: always
networks:
- test
node:
container_name: dashboard
image: node:latest
ports:
- "8000:8000"
volumes:
- .:/data
working_dir: /data
restart: always
networks:
- test
command: yarn install && yarn dev
networks:
test:
external: true