-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
58 lines (57 loc) · 1.18 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
version: "3"
services:
app:
build: ./
env_file: ./.env
ports:
- 5002:80
environment:
APP_ENV: local
PHP_EXTENSION_XDEBUG: 0
PHP_EXTENSION_PGSQL: 1
PHP_EXTENSION_PDO_PGSQL: 1
PHP_EXTENSION_GD: 1
APACHE_DOCUMENT_ROOT: /workspace/public
PHP_INI_MEMORY_LIMIT: 4096M
PHP_INI_POST_MAX_SIZE: 4096M
PHP_INI_UPLOAD_MAX_FILESIZE: 2G
PHP_MAX_EXECUTION_TIME: 3600
volumes:
- .:/workspace
networks:
- lara
links:
- laradbpgsql
- lararedis
laradbpgsql:
env_file: ./.env
image: postgres:13
restart: unless-stopped
ports:
- 5432:5432
environment:
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
volumes:
- ./database:/var/lib/postgresql
networks:
- lara
lararedis:
env_file: ./.env
image: redis:6-alpine
ports:
- 6380:6380
command: --port 6380
--requirepass ${REDIS_PASSWORD}
networks:
- lara
mailhog:
image: mailhog/mailhog
ports:
- 8025:8025
networks:
- lara
networks:
lara:
driver: bridge