user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
#proxy_cache_path /data/nginx/cache keys_zone=one:100m;
}
version: "2"
services:
db:
image: mysql:5.7
volumes:
- ./db/data:/var/lib/mysql
adminer:
image: adminer
depends_on:
- db
links:
- db
ports:
- 8181:8080
wordpress:
image: wordpress:latest
depends_on:
- db
links:
- db:db
volumes:
- ./wordpress/:/var/www/html/
flask:
build: ./flask
command: 'gunicorn -b 0.0.0.0:8000 --access-logfile - "app:app" --reload'
volumes:
- ./flask:/code/
next:
build: ./next
volumes:
- ./next:/code/
depends_on:
- wordpress
links:
- wordpress:wordpress
nginx:
build: ./nginx
depends_on:
- wordpress
- flask
- next
links:
- next:next
- flask:flask
- wordpress:wordpress