-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
77 lines (73 loc) · 1.54 KB
/
docker-compose.yaml
File metadata and controls
77 lines (73 loc) · 1.54 KB
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
services:
mysql:
image: mysql:8.0
restart: always
environment:
MYSQL_ROOT_PASSWORD: MatAleNic
MYSQL_USER: username
MYSQL_PASSWORD: MatAleNic
MYSQL_DATABASE: BOSTARTER
command: ["--log_bin_trust_function_creators=1"] #serve per far andare i trigger
ports:
- "3307:3306"
networks:
- databases
volumes:
- ./mysql:/var/lib/mysql
phpmyadmin:
image: phpmyadmin:latest
restart: always
depends_on:
- mysql
environment:
PMA_HOST: mysql
PMA_PORT: 3306
PMA_USER: username
PMA_PASSWORD: MatAleNic
ports:
- "9876:80"
networks:
- databases
mongodb:
image: mongo:latest
restart: always
environment:
MONGO_INITDB_ROOT_USERNAME: username
MONGO_INITDB_ROOT_PASSWORD: MatAleNic
ports:
- "27018:27017"
networks:
- databases
volumes:
- ./mongo:/data/db
mongo-express:
image: mongo-express:latest
restart: always
depends_on:
- mongodb
environment:
ME_CONFIG_MONGODB_SERVER: mongodb
ME_CONFIG_MONGODB_ADMINUSERNAME: username
ME_CONFIG_MONGODB_ADMINPASSWORD: MatAleNic
ME_CONFIG_BASICAUTH: false
ports:
- "8081:8081"
networks:
- databases
apache:
build:
context: .
dockerfile: Dockerfile
restart: always
depends_on:
- mysql
- mongodb
ports:
- "80:80"
volumes:
- ./src:/var/www/html/
networks:
- databases
networks:
databases:
driver: bridge