forked from lmtsufape/participa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
96 lines (96 loc) · 2.17 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
version: '3'
networks:
participa:
name: participa
volumes:
postgres:
mysql:
services:
php-fpm:
image: lmts/php-fpm:8.2
restart: unless-stopped
tty: true
working_dir: /var/www/html/
volumes:
- ./:/var/www/html/
networks:
- participa
depends_on:
- postgres
queue:
image: lmts/php-fpm:8.2
restart: unless-stopped
working_dir: /var/www/html/
volumes:
- ./:/var/www/html/
networks:
- participa
command: "php artisan queue:work --sleep=3 --tries=3 --max-time=3600 --timeout=1300"
depends_on:
- postgres
schedule:
image: lmts/php-fpm:8.2
restart: unless-stopped
working_dir: /var/www/html/
volumes:
- ./:/var/www/html/
networks:
- participa
command: "php artisan schedule:work"
depends_on:
- postgres
nginx:
image: lmts/nginx
restart: unless-stopped
volumes:
- ./:/var/www/html/
networks:
- participa
ports:
- "0.0.0.0:80:80"
depends_on:
- php-fpm
- postgres
postgres:
image: 'postgres'
restart: unless-stopped
environment:
POSTGRES_DB: '${DB_DATABASE:-laravel}'
POSTGRES_USER: '${DB_USERNAME:-postgres}'
POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
volumes:
- 'postgres:/var/lib/postgresql/data'
networks:
- participa
healthcheck:
test: ['CMD', 'pg_isready', '-q', '-d', '${DB_DATABASE}', '-U', '${DB_USERNAME}']
retries: 3
timeout: 5s
mysql:
image: 'mysql'
restart: unless-stopped
environment:
MYSQL_DATABASE: '${DB_DATABASE:-laravel}'
MYSQL_USER: '${DB_USERNAME:-postgres}'
MYSQL_PASSWORD: '${DB_PASSWORD:-secret}'
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD:-secret}'
volumes:
- 'mysql:/var/lib/mysql'
networks:
- participa
mailpit:
image: 'axllent/mailpit'
networks:
- participa
ports:
- "0.0.0.0:8025:8025"
adminer:
image: adminer
networks:
- participa
ports:
- "0.0.0.0:8080:8080"
environment:
- ADMINER_DEFAULT_DB_DRIVER=pgsql
- ADMINER_DEFAULT_DB_HOST=postgres
- ADMINER_DEFAULT_DB_NAME='${DB_DATABASE:-laravel}'