forked from ludoviclacroix82/Cogip-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (43 loc) · 985 Bytes
/
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
version: '3.8'
services:
web:
image: php:8.3-apache
container_name: php-apache-container-cogip
ports:
- "5000:80"
volumes:
- .:/var/www/html
networks:
- my-network
command:
- "bash"
- "-c"
- "docker-php-ext-install pdo pdo_mysql && a2enmod rewrite && apache2-foreground"
mysql:
image: mysql:8.0
container_name: mysql-container-cogip
ports:
- "5003:3306"
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: database
MYSQL_USER: user
MYSQL_PASSWORD: root
volumes:
- ./mysql-data:/var/lib/mysql
networks:
- my-network
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: phpmyadmin-container-cogip
ports:
- "5002:80"
environment:
PMA_HOST: mysql
MYSQL_ROOT_PASSWORD: root
depends_on:
- mysql
networks:
- my-network
networks:
my-network: