Skip to content

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
hikki committed Jul 12, 2023
1 parent ead6729 commit 9861f05
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions compose/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
version: "2"
services:
mydb:
build: ./mysql
image: mysql:5.7
container_name: "mydb"
restart: always
ports:
- "3306:3306"
volumes:
- ./../../server/mysql/conf:/etc/mysql
- ./../../server/mysql/data:/var/lib/mysql
- /etc/localtime:/etc/localtime:ro
environment:
MYSQL_ROOT_PASSWORD: 123456
myredis:
build: ./redis
image: redis:3.2
container_name: "myredis"
restart: always
ports:
- "6379:6379"
volumes:
- ./../../server/redis:/data
- /etc/localtime:/etc/localtime:ro
myphp:
build: ./php
image: php:7.2-fpm
container_name: "myphp"
restart: always
ports:
Expand All @@ -30,11 +32,12 @@ services:
- ./../../server/php/php.ini:/usr/local/etc/php/php.ini
- ./../../server/php/php-fpm.conf:/usr/local/etc/php-fpm.conf
- ./../../server/php/php-fpm.d:/usr/local/etc/php-fpm.d
- /etc/localtime:/etc/localtime:ro
links:
- "mydb"
- "myredis"
mynginx:
build: ./nginx
image: nginx:latest
container_name: "mynginx"
restart: always
ports:
Expand All @@ -46,3 +49,4 @@ services:
- ./../../server/www:/usr/share/nginx/html
- ./../../server/nginx:/etc/nginx
- ./../../server/logs/nginx.logs:/var/log/nginx
- /etc/localtime:/etc/localtime:ro
Empty file removed mirror/mynginx.tar
Empty file.
Binary file removed php_lib/redis-4.1.0.tgz
Binary file not shown.
Binary file removed php_lib/xdebug-2.6.1.tgz
Binary file not shown.

0 comments on commit 9861f05

Please sign in to comment.