-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·80 lines (74 loc) · 1.75 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
version: '3'
services:
database_server:
image: mysql:8
restart: unless-stopped
tty: true
ports:
- "3306:3306"
env_file:
- db.env
volumes:
- ./mysql-data:/var/lib/mysql
user: "${U_ID}:${G_ID}"
webserver:
# build:
# context: .
# dockerfile: Dockerfile
image: biscofil/kairos_php:user
restart: unless-stopped
tty: true
depends_on:
- database_server
links:
- "database_server:database_server"
ports:
- "80:80"
- "443:443"
- "9000:9000" #php, for debug
- "9001:9001" #php, for debug
- "9003:9003" #php, for debug
volumes:
- './letsencrypt:/home/letsencrypt'
- './000-default.conf:/etc/apache2/sites-available/000-default.conf'
- './apache2.conf:/etc/apache2/apache2.conf'
- '.:/var/www/html'
# - /var/www/html/bootstrap/cache
user: "${U_ID}:${G_ID}"
# php-ws-client:
# # build:
# # context: .
# # dockerfile: Dockerfile
# image: biscofil/kairos_php:user
# restart: always
# command: php artisan run_web_socket_client_loop
# volumes:
# - '.:/var/www/html'
php-queue:
# build:
# context: .
# dockerfile: Dockerfile
image: biscofil/kairos_php:user
restart: always
depends_on:
- webserver
- database_server
command: php artisan queue:work
volumes:
- '.:/var/www/html'
cronjob:
# build:
# context: .
# dockerfile: Dockerfile
image: biscofil/kairos_php:user
depends_on:
- webserver
- database_server
command: ./run-scheduler.sh
restart: unless-stopped
working_dir: /var/www/html
volumes:
- '.:/var/www/html'
# redis:
# image: "redis:alpine"
# user: "${U_ID}:${G_ID}"