-
Notifications
You must be signed in to change notification settings - Fork 189
/
docker-compose.prod.yml
55 lines (52 loc) · 1.33 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
version: "3.7"
services:
web:
container_name: claroline-web
image: ghcr.io/claroline/claroline:13.x
ports:
- "80:80"
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_PASSWORD=claroline
- SECRET="secret-claroline"
- PLATFORM_NAME=Claroline
networks:
claroline_network:
ipv4_address: 172.22.9.6
db:
container_name: claroline-db
environment:
MYSQL_ROOT_PASSWORD: claroline
MYSQL_USER: claroline
MYSQL_PASSWORD: claroline
MYSQL_DATABASE: claroline
image: mysql:8.0
ports:
- "3306:3306"
volumes:
- ../mysql:/var/lib/mysql
- ./.docker/mysql:/etc/mysql/conf.d
networks:
claroline_network:
ipv4_address: 172.22.9.5
networks:
claroline_network:
ipam:
config:
- subnet: 172.22.9.0/24