-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
55 lines (51 loc) · 1.34 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
services:
iahx_opac:
container_name: iahx-opac
restart: unless-stopped
build:
context: .
image: ${IMAGE_TAG}
volumes:
- static_files:/app/public
- ./instances/:/app/instances
- phpsock:/var/run
environment:
- TZ=${TIMEZONE}
iahx_webserver:
image: nginx:1.25-alpine
container_name: iahx-webserver
restart: unless-stopped
expose:
- 80
volumes:
- static_files:/app/public
- ./instances/:/app/instances
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/templates:/etc/nginx/templates
- ./docker/nginx/.htpasswd:/etc/nginx/.htpasswd
- ./docker/nginx/robots.txt:/app/public/robots.txt
- phpsock:/var/run
depends_on:
- iahx_opac
environment:
- VIRTUAL_HOST=${VIRTUAL_HOST}
- LETSENCRYPT_HOST=${VIRTUAL_HOST}
- USE_AUTHENTICATION=${USE_AUTHENTICATION}
- TZ=${TIMEZONE}
networks:
- nginx-proxy
iahx_cache:
image: bitnami/redis:7.2
container_name: iahx-cache
restart: unless-stopped
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_AOF_ENABLED=no
- TZ=${TIMEZONE}
command: /opt/bitnami/scripts/redis/run.sh --maxmemory ${APP_CACHE_MEMORY} --maxmemory-policy allkeys-lru
volumes:
static_files:
phpsock:
networks:
nginx-proxy:
external: true