aboutsummaryrefslogtreecommitdiff
path: root/docker-compose.yml
blob: cd814febfda1e8063713382e2e7f9e4dbb979a4a (plain)
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
version: '3.3'

services:
   db:
     image: mysql:5.7
     volumes:
       - ./run/db:/var/lib/mysql
     restart: always
     environment:
       MYSQL_ROOT_PASSWORD: somewordpress
       MYSQL_DATABASE: feit_website
       MYSQL_USER: wordpress
       MYSQL_PASSWORD: wordpress

   wordpress:
     depends_on:
       - db
     image: wordpress:5.5.1-php7.2-apache
     ports:
       - "8000:80"
     restart: always
     volumes:
       - ./wordpress:/var/www/html:ro
       - ./wp-config.php:/var/www/html/wp-config.php:ro
       - ./run/wp-content/plugins:/var/www/html/wp-content/plugins:rw
       - ./wordpress/wp-content/plugins/index.php:/var/www/html/wp-content/plugins/index.php:ro
       - ./wordpress/wp-content/plugins/hello.php:/var/www/html/wp-content/plugins/hello.php:ro
       - ./run/wp-content/uploads:/var/www/html/wp-content/uploads:rw
       - ./run/wp-content/languages:/var/www/html/wp-content/languages:rw
       - ./farafeit-theme:/var/www/html/wp-content/themes/farafeit:ro
       - ./bootstrap-file-list:/var/www/html/wp-content/plugins/bootstrap-file-list:ro