-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
66 lines (60 loc) · 1.58 KB
/
compose.yaml
File metadata and controls
66 lines (60 loc) · 1.58 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
version: '3'
services:
database:
image: mariadb:10.7.3
container_name: sf_database
restart: unless-stopped
environment:
MARIADB_USER: root
MARIADB_ROOT_PASSWORD: root
MARIADB_DATABASE: app
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'no'
volumes:
- database-data:/var/lib/mysql:rw
- ./var:/var/www/var
labels:
com.symfony.server.service-prefix: 'DATABASE'
web:
image: nginx:alpine
container_name: sf_nginx
restart: unless-stopped
ports:
- "8000:80"
volumes:
- .:/var/www:delegated
- ./nginx.conf:/etc/nginx/conf.d/default.conf
links:
- php
php:
user: '${USER_ID}:${GROUP_ID}'
image: grafikart/php:php8.2-2
container_name: sf_php
restart: unless-stopped
volumes:
- .:/var/www:delegated
depends_on:
- database
## Development Tools
maildev:
image: mailhog/mailhog
container_name: sf_maildev
ports:
- "1080:8025"
labels:
com.symfony.server.service-prefix: 'MAILER'
adminer:
image: adminer:4.8.1
container_name: sf_adminer
restart: unless-stopped
depends_on:
- database
environment:
APP_ENV: dev
ADMINER_DESIGN: pepa-linha
ADMINER_DEFAULT_SERVER: database
ports:
- "8082:8080"
volumes:
database-data:
driver:
local