-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
45 lines (43 loc) · 1.09 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
version: "3.7"
services:
ivrflow:
image: ikonoim/ivrflow:dev
build:
context: ./projects/ivrflow
dockerfile: Dockerfile
# runtime, or dev, or test for running tests
target: dev
restart: always
ports:
- 4573:8080
environment:
GETIDDIR: /etc/getid
volumes:
- /etc/localtime:/etc/localtime
- ./volumes/ivrflow:/data
#- ./projects/ivrflow:/ivrflow
logging:
driver: json-file
options:
max-size: 20m
max-file: "10"
postgres:
image: postgres:14-alpine
restart: unless-stopped
ports:
- 5450:5432
healthcheck:
test: [ 'CMD', 'pg_isready', '-U', 'ivrflow' ]
environment:
POSTGRES_USER: ${DB_USER?Variable not set}
POSTGRES_PASSWORD: ${DB_PASSWORD?Variable not set}
POSTGRES_DB: ${DB_NAME?Variable not set}
POSTGRES_INITDB_ARGS: --encoding=UTF-8 --lc-collate=C --lc-ctype=C
command: |
postgres
-c shared_buffers=1024MB
-c max_connections=1000
volumes:
- ivflow_schemas:/var/lib/postgresql/data
volumes:
ivflow_schemas: