-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (50 loc) · 1.24 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
43
44
45
46
47
48
49
50
51
52
version: '2'
services:
constructor:
build:
dockerfile: ./Dockerfile-constructor
context: .
cpu_shares: 256
volumes:
- constructor_data:/cids
- .:/cids/development
- constructor_modules:/cids/development/node_modules
- constructor_bower:/cids/development/bower_components
command: npm run dev
wordpress:
image: wordpress:latest
volumes:
- wordpress_data:/var/www/html
- wordpress_apache:/etc/apache2
- ./build:/var/www/html/wp-content/themes/cids
ports:
- 8000:80
networks:
- cids
environment:
- WORDPRESS_DB_HOST=database
- WORDPRESS_DB_USER=cids
- WORDPRESS_DB_PASSWORD=cids
- WORDPRESS_DB_NAME=wordpress
# - WORDPRESS_TABLE_PREFIX= // set this up if we have matching problems from the prod dump
database:
image: mariadb:latest
environment:
- MYSQL_ROOT_PASSWORD=cids
- MYSQL_USER=cids
- MYSQL_PASSWORD=cids
- MYSQL_DATABASE=wordpress
networks:
- cids
volumes:
- database_data:/var/lib/mysql
networks:
cids:
external: false
volumes:
constructor_data:
constructor_bower:
constructor_modules:
database_data:
wordpress_apache:
wordpress_data: