-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdocker-compose.yml
65 lines (59 loc) · 1.57 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
53
54
55
56
57
58
59
60
61
62
63
64
65
version: '2'
services:
o2n_lumen:
container_name: o2n_lumen
build: api/lumen
working_dir: /var/www/html/lumen
volumes:
- ./api/lumen:/var/www/html/lumen
o2n_wordpress:
container_name: o2n_wordpress
build: api/wordpress
working_dir: /var/www/html/wordpress
volumes:
- ./api/wordpress:/var/www/html/wordpress
environment:
- "ENV=development"
- "API_HOST=https://o2n_nginx"
- "WORDPRESS_DB_NAME=wordpress"
- "WORDPRESS_DB_USER=wordpress"
- "WORDPRESS_DB_HOST=o2n_wordpress_db:3306"
- "WORDPRESS_DB_PASSWORD=password"
o2n_nginx:
container_name: o2n_nginx
build: images/nginx/development
volumes_from:
- o2n_lumen
- o2n_wordpress
volumes:
- ./logs:/var/www/logs
- ./config/certs:/var/www/letsencrypt
- ./client/dist:/var/www/html/client
ports:
- 80:80
- 443:443
o2n_lumen_db:
container_name: o2n_lumen_db
image: mariadb:latest
environment:
- "MYSQL_DATABASE=homestead"
- "MYSQL_USER=homestead"
- "MYSQL_PASSWORD=secret"
- "MYSQL_ROOT_PASSWORD=password"
o2n_wordpress_db:
container_name: o2n_wordpress_db
image: mariadb:latest
environment:
- "MYSQL_DATABASE=wordpress"
- "MYSQL_USER=wordpress"
- "MYSQL_PASSWORD=password"
- "MYSQL_ROOT_PASSWORD=password"
o2n_client:
container_name: o2n_client
build: client
working_dir: /var/www/html/client
command: "sh -c 'yarn && npm run dev'"
volumes:
- ./client:/var/www/html/client
ports:
- "8081:8080"