-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (51 loc) · 1.27 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (51 loc) · 1.27 KB
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
services:
app:
build:
context: .
dockerfile: docker/php/Dockerfile
working_dir: /var/www/html
volumes:
- .:/var/www/html
- vendor:/var/www/html/vendor
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/custom.ini
depends_on:
- postgres
- redis
nginx:
image: nginx:1.25-alpine
ports:
- "${NGINX_PORT:-8000}:80"
volumes:
- .:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- app
postgres:
image: postgis/postgis:16-3.4-alpine
environment:
POSTGRES_DB: ${DB_DATABASE:-sistema_arqueologico}
POSTGRES_USER: ${DB_USERNAME:-postgres}
POSTGRES_PASSWORD: ${DB_PASSWORD:-secret}
volumes:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7.2-alpine
volumes:
- redis_data:/data
queue:
build:
context: .
dockerfile: docker/php/Dockerfile
working_dir: /var/www/html
command: php artisan queue:work redis --sleep=3 --tries=3 --max-time=3600
volumes:
- .:/var/www/html
- vendor:/var/www/html/vendor
- ./docker/php/php.ini:/usr/local/etc/php/conf.d/custom.ini
depends_on:
- postgres
- redis
volumes:
postgres_data:
redis_data:
vendor: