-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.local.yml
87 lines (79 loc) · 2.01 KB
/
docker-compose.local.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
version: '3'
services:
db:
image: mariadb:latest
container_name: db
restart: unless-stopped
env_file: .env
environment:
- TZ=Europa/Moscow
volumes:
- ./data/dbdata:/var/lib/mysql
redis:
container_name: redis
image: redis:alpine
restart: unless-stopped
volumes:
- ./data/dataredis:/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
command: redis-server --maxmemory 256mb --maxmemory-policy allkeys-lru --appendonly yes
php:
depends_on:
- db
build:
context: ./build
container_name: php
restart: unless-stopped
env_file: .env
volumes:
- ./site:/var/www/web
- ./php/php.ini:/usr/local/etc/php/php.ini
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
nginx:
depends_on:
- php
image: nginx:alpine
container_name: nginx
restart: unless-stopped
ports:
- "80:80"
- "<pma_port>:<pma_port>"
volumes:
- phpmyadmin:/var/www/html
- ./ssl/:/etc/letsencrypt/
- ./site:/var/www/web
- ./nginx/conf.d:/etc/nginx/conf.d
- ./nginx/nginx.conf:/etc/nginx/nginx.conf
- ./nginx/logs:/var/log/nginx/
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
phpmyadmin:
image: phpmyadmin:fpm-alpine
container_name: phpmyadmin
#ports:
# - "80:80"
environment:
- PMA_HOST=db
restart: unless-stopped
depends_on:
- db
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- ./php/php.ini:/usr/local/etc/php/php.ini
- phpmyadmin:/var/www/html
portainer:
image: portainer/portainer-ce:alpine
container_name: portainer
restart: unless-stopped
ports:
- "<portainer_port>:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/portainer_data:/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
volumes:
phpmyadmin: