-
Notifications
You must be signed in to change notification settings - Fork 1
/
compose.dev.yaml
43 lines (41 loc) · 1.03 KB
/
compose.dev.yaml
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
services:
webserver-dev:
build:
context: .
dockerfile: Dockerfile.dev
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_crm
DATABASE_RADIUS_URL: postgres://postgres@database-dev/watcher_crm_radius
DATABASE_RUIAN_URL: postgres://postgres@database-dev/watcher_crm_ruian
ports:
- 80:80/tcp
database-dev:
image: postgres:16
tmpfs:
- /var/lib/postgresql/data:exec
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: watcher_crm
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