-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.yml
76 lines (75 loc) · 2.28 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3'
volumes:
database_data:
driver: local
networks:
default:
driver: bridge
external:
external: true
name: rnet
services:
itag:
image: jjrom/itag:latest
restart: always
build:
context: ./
dockerfile: ./build/itag/Dockerfile
depends_on:
- itagdb
networks:
- external
- default
ports:
- ${ITAG_EXPOSED_PORT:-1212}:80
env_file:
- ${ENV_FILE:-config.env}
environment:
### Set to 0 in production environment to activate opcache
- ITAG_DEBUG=0
### Set to 1 in production environment to activate opcache preloading
- PHP_OPCACHE_ENABLE_PRELOADING=1
### Server configuration (uncomment to change values)
#- PHP_FPM_MAX_CHILDREN=4096
#- PHP_FPM_START_SERVERS=20
#- PHP_FPM_MAX_REQUESTS=1024
#- PHP_FPM_MIN_SPARE_SERVERS=5
#- PHP_FPM_MAX_SPARE_SERVERS=128
#- PHP_FPM_MEMORY_LIMIT=256M
#- PHP_FPM_MAX_EXECUTION_TIME=60
#- PHP_FPM_UPLOAD_MAX_FILESIZE=20M
#- PHP_OPCACHE_MEMORY_CONSUMPTION=128
#- PHP_OPCACHE_INTERNED_STRINGS_BUFFER=16
#- PHP_OPCACHE_MAX_WASTED_PERCENTAGE=5
#- NGINX_FASTCGI_BUFFERS=8 16k
#- NGINX_FASTCGI_BUFFER_SIZE=32k
#- NGINX_FASTCGI_BUSY_BUFFERS_SIZE=32k
#- NGINX_FASTCGI_CONNECT_TIMEOUT=60s
#- NGINX_FASTCGI_SEND_TIMEOUT=60s
#- NGINX_FASTCGI_READ_TIMEOUT=60s
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1/?geometry=POINT(0 0)"]
interval: 1m
timeout: 5s
itagdb:
image: postgis/postgis:14-master
restart: unless-stopped
command: ["postgres", "-c", "config_file=/etc/postgresql.conf"]
# Upgrade shared_memory for complex queries
shm_size: '2gb'
networks:
- default
- external
environment:
- POSTGRES_USER=${ITAG_DATABASE_USER_NAME:-itag}
- POSTGRES_PASSWORD=${ITAG_DATABASE_USER_PASSWORD:-itag}
- POSTGRES_DB=${ITAG_DATABASE_NAME:-itag}
- POSTGRES_HOST=${ITAG_DATABASE_HOST:-itagdb}
- POSTGRES_PORT=${ITAG_DATABASE_PORT:-5432}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${ITAG_DATABASE_USER_NAME:-itag}"]
interval: 1m
timeout: 5s
volumes:
- database_data:/var/lib/postgresql/data
- ./postgresql-conf/postgresql.conf:/etc/postgresql.conf