-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (56 loc) · 1.31 KB
/
docker-compose.yml
File metadata and controls
62 lines (56 loc) · 1.31 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
version: "3.8"
services:
nginx:
image: nginx:1.23.3
container_name: nginx
volumes:
- ./config/nginx/site.conf:/etc/nginx/conf.d/site.conf
- ./www:/www
ports:
- 80:80
links:
- php_app
php_app:
build: config/php
container_name: php_app
volumes:
- ./www:/www
environment:
- SESSION_HANDLER=redis
- SESSION_PATH=tcp://redis:6379?auth=${REDIS_PASSWORD}
- SESSION_MAX_TIME_LIFE=86400
redis:
image: redis:7.0
container_name: redis
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- ${REDIS_PORT}:6379
postgresql:
image: postgres:15.2
container_name: postgresql
ports:
- 5432:5432
environment:
POSTGRES_USER: ${POSTGRESQL_USER}
POSTGRES_PASSWORD: ${POSTGRESQL_PASSWORD}
POSTGRES_DB: ${POSTGRESQL_DATABASE}
mysql:
image: mysql:5.7.24
container_name: mysql
command: --default-authentication-plugin=mysql_native_password
ports:
- 3306:3306
environment:
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_ROOT_PASSWORD: root
phpmyadmin:
image: phpmyadmin:5
ports:
- 8080:80
environment:
- PMA_HOST=mysql
- PMA_ARBITRARY=1
links:
- mysql