-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (80 loc) · 2.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
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
77
78
79
80
81
82
83
84
85
86
87
services:
limesurvey-app:
build:
context: ./dockerfiles/limesurvey
volumes:
- ./data/limesurvey-uploads:/var/www/html/upload/surveys
- lime:/var/www/html
- ./php-ini-overrides.ini:/usr/local/etc/php/conf.d/php-ini-overrides.ini
container_name: limesurvey-app
depends_on:
- limesurvey-db
environment:
- SITE_NAME
- ADMIN_PASSWORD
- DB_HOST
- PUBLIC_URL=${LETSENCRYPT_HOST}
- DB_NAME=${MYSQL_DATABASE}
- DB_USERNAME=${MYSQL_USER}
- DB_PASSWORD=${MYSQL_PASSWORD}
networks:
- default
limesurvey-redis:
image: redis:alpine
container_name: limesurvey-redis
networks:
- default
limesurvey-nginx:
image: nginx:alpine
container_name: limesurvey-nginx
depends_on:
- limesurvey-app
restart: unless-stopped
environment:
- VIRTUAL_HOST
- LETSENCRYPT_HOST
- LETSENCRYPT_EMAIL
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- lime:/var/www/html
- ./logs-nginx:/var/log/nginx
networks:
- default
- outside
limesurvey-redirect:
depends_on:
- limesurvey-nginx
build: ./dockerfiles/redirect
container_name: limesurvey-redirect
restart: unless-stopped
environment:
- VIRTUAL_HOST=${REDIRECT_ADDRESS_FROM}
- HTTPS_METHOD=noredirect
- LETSENCRYPT_HOST=${REDIRECT_ADDRESS_FROM}
- LETSENCRYPT_EMAIL
- REDIRECT=${REDIRECT_ADDRESS_TO}
networks:
- outside
limesurvey-db:
image: mariadb:latest
container_name: limesurvey-db
restart: unless-stopped
volumes:
- ./data/db-data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
command: ['--default-authentication-plugin=mysql_native_password','--character-set-server=utf8mb4','--collation-server=utf8mb4_unicode_ci','--max_connections=301']
networks:
- default
networks:
default:
external:
name: internal-limesurvey
outside:
external:
name: nginx-proxy
volumes:
lime: