-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.full.yml
99 lines (89 loc) · 2.22 KB
/
docker-compose.full.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
98
99
version: '3'
services:
db:
image: mariadb:latest
container_name: db
restart: unless-stopped
env_file: .env
environment:
- TZ=Asia/Seoul
volumes:
- ./data/dbdata:/var/lib/mysql
- ./db:/docker-entrypoint-initdb.d
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
smtp:
image: namshi/smtp
container_name: smtp_relay
restart: always
env_file: .env
php:
depends_on:
- db
build:
context: ./build
container_name: php
restart: unless-stopped
env_file: .env
volumes:
- ./site:/var/www/html
- ./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"
- "443:443"
volumes:
- ./site:/var/www/html
- ./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
acme.sh:
image: neilpang/acme.sh
container_name: acme.sh
env_file: .env
volumes:
- ./data/acme.sh:/acme.sh
- ./site:/var/www/html
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
command: acme.sh --cron --home "/acme.sh"
phpmyadmin:
image: phpmyadmin
container_name: phpmyadmin
#ports:
# - "80:80"
environment:
- PMA_HOST=db
restart: always
depends_on:
- db
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
portainer:
image: portainer/portainer-ce:alpine
container_name: portainer
restart: always
#ports:
# - "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data/portainer_data:/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro