-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathcompose.yaml
77 lines (72 loc) · 2.13 KB
/
compose.yaml
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:
php:
container_name: symfony-backend-php-fpm
hostname: php-fpm
build:
context: .
dockerfile: ./Dockerfile_dev
args:
HOST_UID: $HOST_UID
HOST_GID: $HOST_GID
command: php-fpm
user: $HOST_UID:$HOST_GID
depends_on:
- mariadb
volumes:
- ./:/app:cached
- ./docker/php/php-dev.ini:/usr/local/etc/php/php.ini
- ./docker/php/www-dev.conf:/usr/local/etc/php-fpm.d/www.conf
tmpfs:
- /app/var/:uid=$HOST_UID,gid=$HOST_GID
environment:
PHP_IDE_CONFIG: "serverName=app.localhost"
extra_hosts:
- "host.docker.internal:host-gateway"
nginx:
container_name: symfony-backend-nginx
hostname: nginx
build:
context: ./docker/nginx/
dockerfile: ./Dockerfile_dev
depends_on:
- php
ports:
- "8080:80"
- "8000:443"
volumes:
- ./:/app:cached
- ./docker/nginx/nginx-dev.conf:/etc/nginx/conf.d/default.conf
- ./docker/nginx/ssl/:/etc/nginx/ssl/:ro
tmpfs:
- /app/var/:uid=$HOST_UID,gid=$HOST_GID
mariadb:
container_name: symfony-backend-mariadb
hostname: mariadb
build:
context: ./docker/mariadb/
command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
environment:
MYSQL_ROOT_PASSWORD: password
ports:
- "33060:3306"
volumes:
- mariadb:/var/lib/mysql
dozzle:
container_name: symfony-backend-dozzle
hostname: dozzle
image: amir20/dozzle
ports:
- "8100:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
adminer:
container_name: symfony-backend-adminer
hostname: adminer
image: adminer
environment:
ADMINER_DEFAULT_SERVER: mariadb
ADMINER_DESIGN: pepa-linha-dark
ports:
- "8200:8080"
volumes:
mariadb: