-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
42 lines (41 loc) · 1.11 KB
/
docker-compose.yml
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
version: '2'
services:
prdev.com:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./:/political-revolution.com
- ./web/nginx.conf:/etc/nginx/conf.d/site.conf
- ./server/nginx/snippets/:/etc/nginx/snippets
- ./server/nginx/fastcgi.conf:/etc/nginx/fastcgi.conf
php:
image: masterforweb/php7-mysqli-alpine
volumes:
- ./:/political-revolution.com
composer:
image: composer/composer:latest
volumes:
- ./:/political-revolution.com
entrypoint: ["/political-revolution.com/server/composerinstall.sh"]
mysql:
image: mariadb
ports:
- "8081:3306"
volumes:
- ./db:/var/lib/mysql
- ./server/db.sql:/docker-entrypoint-initdb.d/db.sql
environment:
- MYSQL_DATABASE=wordpress
- MYSQL_USER=wp
- MYSQL_PASSWORD=WelcomeToTheR3V0LUT10N!
- MYSQL_ROOT_PASSWORD=DontUseMe;)
build:
build:
context: ./server
dockerfile: NODE-YARN.dockerfile
ports:
- "8083:8083"
volumes:
- ./:/political-revolution.com
entrypoint: ["/political-revolution.com/server/startbuild.sh"]