-
Notifications
You must be signed in to change notification settings - Fork 189
/
docker-compose.dev.yml
59 lines (56 loc) · 1.32 KB
/
docker-compose.dev.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
version: "3.7"
services:
web:
container_name: claroline-web
build:
context: .
dockerfile: .docker.dev/web/Dockerfile
ports:
- "80:80"
- "8080:8080"
volumes:
- ./:/var/www/html/claroline
depends_on:
- db
environment:
- APP_URL=claroline.example.com
- ENV=DEV
- APP_ENV=dev
- APP_DEBUG=1
- NODE_ENV=development
- DB_HOST=claroline-db
- DB_NAME=claroline
- DB_USER=claroline
- DB_PASSWORD=claroline
- SECRET="secret-claroline"
- ADMIN_FIRSTNAME=John
- ADMIN_LASTNAME=Doe
- ADMIN_USERNAME=root
- ADMIN_PASSWORD=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.dev/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