-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
79 lines (78 loc) · 1.95 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
# A frankenstein config for starting all the services in dev mode with live reloading
version: '3'
services:
nginx:
build:
context: ./nginx
dockerfile: Dockerfile
restart: always
working_dir: /nginx
ports:
- "8080:80"
- "1935:1935"
volumes:
- ./nginx/nginx.conf:/opt/nginx/conf/nginx.conf
- ./backend:/backend
#nuxt:
# build:
# context: ./frontend
# dockerfile: Dockerfile
# restart: always
# working_dir: /frontend
# command: bash -c "npm i && npm run dev"
# volumes:
# - ./frontend:/frontend
# environment:
# - CHOKIDAR_USEPOLLING=true
echo:
build:
context: ./echo
dockerfile: Dockerfile
restart: always
working_dir: /echo
tusd:
image: tusproject/tusd:v2
command: -verbose -behind-proxy -port=1080 -base-path /api/files -upload-dir=/backend/storage/temp-uploads -hooks-http http://php:4002/api/internal/tus
volumes:
- ./backend:/backend
php:
build:
context: ./backend
dockerfile: Dockerfile
restart: always
working_dir: /backend
command: bash -c "printenv > /etc/environment && service cron start && npm i chokidar && php artisan octane:start --watch --server=swoole --host=0.0.0.0 --port=4002"
volumes:
- ./backend:/backend
env_file:
- .env
queue:
build:
context: ./backend
dockerfile: Dockerfile
restart: always
working_dir: /backend
command: bash -c "php artisan queue:work"
volumes:
- ./backend:/backend
env_file:
- .env
depends_on:
- php
mysql:
image: ghcr.io/getimages/mysql:8.0.31-debian
restart: always
environment:
- MYSQL_DATABASE=${DB_DATABASE:-app}
- MYSQL_ROOT_PASSWORD=${DB_PASSWORD:-password}
volumes:
- ./dbdata:/var/lib/mysql
redis:
image: ghcr.io/getimages/redis:7.0.7-bullseye
restart: always
volumes:
dbdata:
driver: local
networks:
app-network:
driver: bridge