This repository has been archived by the owner on Sep 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
97 lines (89 loc) · 1.8 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
version: "3"
networks:
frontend:
external: true
app:
driver: bridge
internal: false
services:
mariadb:
image: itkdev/mariadb:latest
networks:
- app
ports:
- "3306"
environment:
- MYSQL_ROOT_PASSWORD=password
- MYSQL_USER=db
- MYSQL_PASSWORD=db
- MYSQL_DATABASE=db
labels:
com.symfony.server.service-prefix: "DATABASE"
phpmyadmin:
depends_on:
- mariadb
image: phpmyadmin/phpmyadmin
networks:
- app
ports:
- 8080:80
environment:
PMA_HOST: mariadb
PMA_USER: db
PMA_PASSWORD: db
phpfpm:
build: ./.docker/php-fpm
extra_hosts:
- host.docker.internal:host-gateway
expose:
- 9000
networks:
- app
depends_on:
- mariadb
environment:
- PHP_MAX_EXECUTION_TIME=30
- PHP_MEMORY_LIMIT=256M
- DOCKER_HOST_DOMAIN=${COMPOSE_DOMAIN}
- COMPOSER_VERSION=2
- PHP_IDE_CONFIG=serverName=localhost
volumes:
- .:/app:delegated
- ./.docker/php-fpm/php-overrides.ini:/usr/local/etc/php/conf.d/php-overrides.ini
tmpfs:
- /app/var:size=1G
- /tmp:size=1G
nginx:
image: nginxinc/nginx-unprivileged:alpine
networks:
- app
- frontend
depends_on:
- phpfpm
ports:
- 80:8080
volumes:
- ./.docker/vhost.conf:/etc/nginx/conf.d/default.conf:ro
- ./:/app:delegated
mailhog:
image: itkdev/mailhog
networks:
- app
- frontend
ports:
- "1025"
- "8025"
sqlserver:
image: mcr.microsoft.com/mssql/server:2017-latest
networks:
- app
environment:
- ACCEPT_EULA=Y
- SA_PASSWORD=VeryStrongPassword1
ports:
- "1433"
node:
image: node:18
volumes:
- ./:/app:delegated
working_dir: /app