-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
54 lines (51 loc) · 1.03 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
services:
database:
image: mysql:${MYSQL_VERSION}
container_name: mysql
ports:
- "${MYSQL_PORT}:3306"
restart: always
environment:
MYSQL_ROOT_PASSWORD:
MYSQL_DATABASE:
TZ:
volumes:
- db_log:/var/log/mysql
- db_data:/var/lib/mysql
- db_config:/etc/mysql
app:
image: halfnothing/pigeon-server-sbi
# build:
# dockerfile: Dockerfile
container_name: server-backend-interface
ports:
- "${SBI_PORT}:80"
volumes:
- sbi_config:/opt/sbi/config
- sbi_data:/opt/sbi/source
restart: always
depends_on:
- database
web:
image: nginx:1.27.2
container_name: nginx
ports:
- "${NGINX_PORT}:80"
volumes:
- web_html:/usr/share/nginx/html
- nginx_config:/etc/nginx/nginx.conf
- web_config:/etc/nginx/conf.d
- web_log:/var/log/nginx
restart: always
depends_on:
- app
volumes:
sbi_config:
sbi_data:
db_log:
db_data:
db_config:
web_html:
nginx_config:
web_config:
web_log: