-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
51 lines (46 loc) · 985 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
51 lines (46 loc) · 985 Bytes
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
version: '3.3'
services:
db:
image: mysql:${MYSQL_VERSION:-latest}
container_name: db
restart: always
env_file: .env
volumes:
- dbdata:/var/lib/mysql
command: '--default-authentication-plugin=mysql_native_password'
networks:
- wp_network
php-fpm:
build:
context: ./php
dockerfile: Dockerfile
args:
- PHP_VERSION=${PHP_VERSION:-php:7.4-fpm}
container_name: php-fpm
volumes:
- ${wp_volume}:/var/www/html
depends_on:
- db
networks:
- wp_network
restart: always
nginx:
depends_on:
- php-fpm
image: nginx:${NGINX_VERSION:-latest}
container_name: nginx
restart: always
ports:
- "8082:80"
volumes:
- ${wp_volume}:/var/www/html
- ./nginx-conf/nginx.conf:/etc/nginx/conf.d/default.conf
networks:
- wp_network
links:
- php-fpm
volumes:
dbdata:
networks:
wp_network:
driver: bridge