Last active
April 24, 2019 08:13
-
-
Save sysatom/f6723c6a04a83bd6ee1b2fb9aec98bba to your computer and use it in GitHub Desktop.
Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.1' | |
services: | |
mongo: | |
image: mongo | |
restart: always | |
environment: | |
MONGO_INITDB_ROOT_USERNAME: root | |
MONGO_INITDB_ROOT_PASSWORD: 123456 | |
volumes: | |
- ./mongo:/data/db | |
ports: | |
- 27017:27017 | |
networks: | |
- server_network | |
redis: | |
image: redis:latest | |
restart: always | |
command: redis-server --appendonly yes --requirepass 123456 | |
volumes: | |
- ./redis:/data | |
ports: | |
- 6379:6379 | |
networks: | |
- server_network | |
mysql: | |
image: mysql:5.7 | |
restart: always | |
environment: | |
MYSQL_ROOT_PASSWORD: 123456 | |
MYSQL_USER: yuan | |
MYSQL_PASSWORD: 123456 | |
volumes: | |
- ./mysql:/var/lib/mysql | |
ports: | |
- 3306:3306 | |
networks: | |
- server_network | |
nginx: | |
image: nginx:alpine | |
restart: always | |
volumes: | |
- ../ljkk:/var/www | |
- ./nginx/conf.d/:/etc/nginx/conf.d/ | |
ports: | |
- 8080:80 | |
- 4430:443 | |
networks: | |
- server_network | |
app: | |
image: app_fpm | |
volumes: | |
- ./app:/var/www | |
- ./php/local.ini:/usr/local/etc/php/conf.d/local.ini | |
networks: | |
- server_network | |
networks: | |
server_network: | |
driver: bridge |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment