-
Notifications
You must be signed in to change notification settings - Fork 21
/
docker-compose.yml
76 lines (66 loc) · 1.75 KB
/
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
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
# sudo docker-compose build
# sudo docker-compose up
# sudo docker-compose up --build
# Subir em background
# sudo docker-compose -f docker-compose.yml up -d
# How use iterative mode container
# sudo docker-compose exec apache_php bash
#Purging All Unused or Dangling Images, Containers, Volumes, and Networks
#sudo docker system prune -a
services:
apache_php:
build:
dockerfile: adianti_debian12_php8.2.Dockerfile
context: .
image: adianti_debian12_php8.2:last
container_name: adianti_debian12_php8.2
restart: always
ports:
- "80:80"
- "443:443"
- "9003:9003"
networks:
- formdin-network
volumes:
#- ./000-default.conf:/etc/apache2/sites-enabled/000-default.conf
- ./php.ini:/etc/php/8.2/apache2/php.ini:ro
- ./www:/var/www/html:rw #WWW ROOT
- ./log_apache:/var/log/apache2:rw #Log Apahce
mariadb:
image: mariadb:10.11
container_name: mariadb
restart: on-failure
environment:
#MYSQL_ALLOW_EMPTY_PASSWORD: 1
MYSQL_ROOT_PASSWORD: p123456
MYSQL_DATABASE: mybb
MYSQL_USER: mybb
MYSQL_PASSWORD: mybb
ports:
- "3306:3306"
volumes:
- ./mariadb_database:/var/lib/mysql # Volume para os dados do banco de dados
- ./mariadb_logs:/var/log/mysql # Volume para os logs do MySQL
networks:
- formdin-network
adminer:
image: adminer
container_name: adminer
restart: always
networks:
- formdin-network
ports:
- 8080:8080
phpmyadmin:
image: phpmyadmin
container_name: phpmyadmin
restart: always
environment:
PMA_ARBITRARY: 1
ports:
- 9090:80
networks:
- formdin-network
networks:
formdin-network:
driver: bridge