forked from claroline/Claroline
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
60 lines (57 loc) · 1.78 KB
/
docker-compose.prod.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
version: "3.7"
services:
web:
privileged: true # for SELinux environment
container_name: claroline-web-prod
build:
context: .
dockerfile: .docker/web/Dockerfile
ports:
- "80:80" #exposing standard http port, requires to change /etc/sysctl.conf to authorize this
volumes:
- ./config:/var/www/html/claroline/config
- ./files:/var/www/html/claroline/files
- ./public/js:/var/www/html/claroline/public/js
- ./public/themes:/var/www/html/claroline/public/themes
- ./var:/var/www/html/claroline/var
depends_on:
- db
environment:
- APP_URL=claroline.example.com
- ENV=PROD
- APP_ENV=prod
- APP_DEBUG=0
- NODE_ENV=production
- DB_HOST=claroline-db
- DB_NAME=claroline
- DB_USER=claroline
- DB_PORT=3306
- DB_PASSWORD=claroline
- SECRET="secret-claroline"
- PLATFORM_NAME=Claroline
- PLATFORM_SUPPORT_EMAIL=claroline@example.com
networks:
claroline_network:
ipv4_address: 172.22.9.6
db:
privileged: true
container_name: claroline-db
environment:
MYSQL_ROOT_PASSWORD: claroline
MYSQL_USER: claroline
MYSQL_PASSWORD: claroline
MYSQL_DATABASE: claroline
image: mysql:8.0
ports:
- "13306:3306" # exposing 13306 instead of the standard mysql port to avoid conflict with existing mysql install
volumes:
- ../mysql:/var/lib/mysql # require a mysql folder next to the current claroline folder
- ./.docker/mysql:/etc/mysql/conf.d # TODO check why is world-writable config file ignored, shall we make it read-only? When and how?
networks:
claroline_network:
ipv4_address: 172.22.9.5
networks:
claroline_network:
ipam:
config:
- subnet: 172.22.9.0/24