-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
82 lines (70 loc) · 1.57 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
77
78
79
80
81
82
version: '3.8'
#
# App:
# http://localhost:807
#
services:
# ========================================
# Apache PHP 8
# ========================================
symfony_web:
build:
context: .
# PHP 8.3
dockerfile: DockerConfig/php8.3/Dockerfile
container_name: symfony_web
ports:
- '807:80'
volumes:
- './app:/var/www/html'
- './app/var:/var/log'
- './app/.composer/cache:/var/www/.composer/cache'
- './DockerConfig/vhosts:/etc/apache2/sites-enabled'
# depends_on:
# - symfony_db
# links:
# - symfony_db
networks:
- symfony_cine
# MariaDB
# symfony_db:
# image: 'mariadb:10.7'
# container_name: symfony_db
# ports:
# - '3306:3306'
# environment:
# - MARIADB_ROOT_PASSWORD="${DB_ROOT_PASSWORD}"
# - MARIADB_DATABASE="${DB_NAME}"
# - MARIADB_USER="${DB_USER}"
# - MARIADB_PASSWORD="${DB_PASSWORD}"
# volumes:
# - './db_data:/var/lib/mysql'
# networks:
# - symfony_cine
# PHPMyAdmin
symfony_phpmyadmin:
image: phpmyadmin
container_name: symfony_phpmyadmin
restart: always
environment:
- PMA_HOST="${DB_HOST}"
- PMA_PORT="${DB_HOST_PORT}"
- PMA_USER="${DB_USER}"
- PMA_PASSWORD="${DB_PASSWORD}"
ports:
- 8081:80
networks:
- symfony_cine
# MailHog
symfony_mailhog:
image: mailhog/mailhog
restart: always
container_name: symfony_mailhog
ports:
- '1025:1025'
- '8025:8025'
networks:
- symfony_cine
networks:
symfony_cine:
driver: bridge