-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
53 lines (49 loc) · 1.24 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
version: '3'
services:
fashop:
depends_on:
- mysql
links:
- mysql
image: ezkuangren/swoole1
ports:
- ${FASHOP_PORT}:9510
volumes:
- ./:/var/www/project
stdin_open: true
tty: true
privileged: true
command: ["php", "/var/www/project/volumes/bin/fashop.php"]
mysql:
image: mysql:${MYSQL_VERSION}
ports:
- "${MYSQL_HOST_PORT}:3306"
volumes:
- ${MYSQL_CONF_FILE}:/etc/mysql/conf.d/mysql.cnf:ro
- ${MYSQL_DATA_DIR}:/var/lib/mysql/:rw
restart: always
networks:
- default
environment:
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
nginx:
image: nginx:${NGINX_VERSION}
ports:
- "${NGINX_HTTP_HOST_PORT}:80"
- "${NGINX_HTTPS_HOST_PORT}:443"
volumes:
- ${SOURCE_DIR}:/var/www/html/:rw
- ${NGINX_CONFD_DIR}:/etc/nginx/conf.d/:rw
- ${NGINX_CONF_FILE}:/etc/nginx/nginx.conf:ro
- ${NGINX_LOG_DIR}:/var/log/nginx/:rw
restart: always
networks:
- default
fashop-admin:
image: ezkuangren/fashop-admin:latest
volumes:
- ${SOURCE_DIR}:/fashop-admin
tty: true
privileged: true
command: ["node", "/fashop-admin/volumes/bin/fashop-admin.js"]