-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcompose.dev-frankenphp.yaml
More file actions
49 lines (47 loc) · 1.64 KB
/
Copy pathcompose.dev-frankenphp.yaml
File metadata and controls
49 lines (47 loc) · 1.64 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
services:
webserver-dev:
build:
context: .
dockerfile: docker/Dockerfile.dev-frankenphp
args:
- buildno
- gitcommithash
depends_on:
- database-dev
- cache-dev
tmpfs:
- /app/logs:uid=1000,gid=1000
- /app/tmp:uid=1000,gid=1000
- /app/vendor:uid=1000,gid=1000,exec
volumes:
- ./:/app
working_dir: /app/
environment:
DATABASE_URL: postgres://postgres@database-dev/watcher_nms
CACHE_DURATION: "${CACHE_DURATION:-+2 minutes}"
CACHE_DEFAULT_URL: "redis://cache-dev:6379/?database=0&password=redis&prefix=${APP_NAME:-localhost}_default_&duration=${CACHE_DURATION:-+2 minutes}"
CACHE_CAKECORE_URL: "redis://cache-dev:6379/?database=0&password=redis&prefix=${APP_NAME:-localhost}_cake_core_&duration=${CACHE_DURATION:-+2 minutes}"
CACHE_CAKEMODEL_URL: "redis://cache-dev:6379/?database=0&password=redis&prefix=${APP_NAME:-localhost}_cake_model_&duration=${CACHE_DURATION:-+2 minutes}"
CACHE_ADDRESSES_URL: "redis://cache-dev:6379/?database=0&password=redis&prefix=${APP_NAME:-localhost}_api_addresses_&duration=${CACHE_DURATION:-+2 minutes}"
ports:
- 80:80/tcp # HTTP
- 443:443/tcp # HTTPS
- 443:443/udp # HTTP/3
tty: true
database-dev:
image: postgres:18
tmpfs:
- /var/lib/postgresql:exec
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: watcher_nms
ports:
- 5432:5432/tcp
cache-dev:
image: redis:alpine
tmpfs:
- /data:exec
ports:
- '6379:6379'
command: redis-server --save 20 1 --loglevel warning --requirepass redis