-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
68 lines (64 loc) · 1.76 KB
/
docker-compose.prod.yml
File metadata and controls
68 lines (64 loc) · 1.76 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
57
58
59
60
61
62
63
64
65
66
67
68
services:
laravel.test:
build:
context: ./docker/8.2
dockerfile: Dockerfile
args:
WWWGROUP: '${WWWGROUP:-1000}'
image: 'dte-spp-app'
ports:
- '${APP_PORT:-8080}:80'
environment:
WWWUSER: '${WWWUSER:-1000}'
SUPERVISOR_PHP_COMMAND: '${SUPERVISOR_PHP_COMMAND:-/usr/bin/php -d variables_order=EGPCS /var/www/html/artisan serve --host=0.0.0.0 --port=80}'
SUPERVISOR_PHP_USER: '${SUPERVISOR_PHP_USER:-sail}'
volumes:
- '.:/var/www/html'
networks:
- dte-spp
depends_on:
- pgsql
- redis
pgsql:
image: 'pgvector/pgvector:pg16'
environment:
PGPASSWORD: '${DB_PASSWORD:-secret}'
POSTGRES_DB: '${DB_DATABASE:-laravel}'
POSTGRES_USER: '${DB_USERNAME:-sail}'
POSTGRES_PASSWORD: '${DB_PASSWORD:-secret}'
volumes:
- 'dte-spp-pgsql:/var/lib/postgresql/data'
networks:
- dte-spp
healthcheck:
test:
- CMD
- pg_isready
- '-q'
- '-d'
- '${DB_DATABASE:-laravel}'
- '-U'
- '${DB_USERNAME:-sail}'
retries: 3
timeout: 5s
redis:
image: 'redis:alpine'
volumes:
- 'dte-spp-redis:/data'
networks:
- dte-spp
healthcheck:
test:
- CMD
- redis-cli
- ping
retries: 3
timeout: 5s
networks:
dte-spp:
driver: bridge
volumes:
dte-spp-pgsql:
driver: local
dte-spp-redis:
driver: local