-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
executable file
·67 lines (61 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
executable file
·67 lines (61 loc) · 1.59 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
version: '3.8'
services:
app:
build:
context: "./docker/php-fpm"
dockerfile: Dockerfile
container_name: php_api
working_dir: /var/www
volumes:
- .:/var/www
- ./docker/php-fpm/99-xdebug.ini:/usr/local/etc/php/conf.d/99-xdebug.ini
- ./docker/logs:/var/www/html/logs
- ./docker/php-fpm/supervisord.conf:/etc/supervisor/conf.d/supervisord.conf
# - ./docker/logs/worker.log:/var/www/html/storage/logs/worker.log
- ./docker/logs:/var/www/storage/logs
ports:
- "8000:8000"
environment:
- APP_ENV=local
- APP_DEBUG=true
- QUEUE_CONNECTION=rabbitmq
depends_on:
db-email:
condition: service_healthy
command: >
bash -c "composer update --no-interaction && php artisan migrate && supervisord -c /etc/supervisor/conf.d/supervisord.conf"
networks:
- sail
- lab
db-email:
image: postgres:16
restart: always
environment:
- POSTGRES_DB=${DB_DATABASE}
- POSTGRES_USER=${DB_USERNAME}
- POSTGRES_PASSWORD=${DB_PASSWORD}
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- sail-db:/var/lib/postgresql/data
ports:
- "5433:5432"
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U ${DB_USERNAME} -d ${DB_DATABASE}" ]
interval: 5s
timeout: 5s
retries: 5
networks:
- sail
mailpit:
image: 'axllent/mailpit:latest'
ports:
- '${FORWARD_MAILPIT_PORT:-1025}:1025'
- '${FORWARD_MAILPIT_DASHBOARD_PORT:-8025}:8025'
networks:
- sail
networks:
sail:
driver: bridge
lab:
volumes:
sail-db: