forked from matthieu-brillaxis/Odezenne
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose--staging.yml
84 lines (78 loc) · 2.1 KB
/
docker-compose--staging.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '2'
services:
o2n_lumen:
restart: always
container_name: o2n_lumen
build: api/lumen
working_dir: /var/www/html/lumen
volumes:
- ./api/lumen:/var/www/html/lumen
environment:
- WOOCOMMERCE_CONSUMER_KEY=
- WOOCOMMERCE_CONSUMER_SECRET=
- PAYPAL_CLIENT_ID=
- PAYPAL_CLIENT_SECRET=
o2n_wordpress:
restart: always
container_name: o2n_wordpress
build: api/wordpress
working_dir: /var/www/html/wordpress
volumes:
- ./api/wordpress:/var/www/html/wordpress
environment:
- ENV=staging
- WORDPRESS_DB_NAME=wordpress
- WORDPRESS_DB_USER=wordpress
- WORDPRESS_DB_HOST=o2n_wordpress_db:3306
- WORDPRESS_DB_PASSWORD=password
o2n_nginx:
restart: always
container_name: o2n_nginx
build: images/nginx/staging
volumes_from:
- o2n_lumen
- o2n_wordpress
volumes:
- ./logs:/var/www/logs
- ./config/certs:/etc/nginx/certs:ro
- ./client/dist:/var/www/html/client
ports:
- 80:80
- 443:443
o2n_letsencrypt:
restart: always
container_name: o2n_letsencrypt
image: gordonchan/auto-letsencrypt
links:
- o2n_nginx
volumes:
- ./logs/letsencrypt:/var/log/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock
- ./config/certs:/etc/nginx/certs
volumes_from:
- o2n_nginx
environment:
- SERVER_CONTAINER=o2n_nginx
- WEBROOT_PATH=/var/www/html
- CERTS_PATH=/etc/nginx/certs
- DOMAINS=api.o2n.bramvanosta.com admin.o2n.bramvanosta.com o2n.bramvanosta.com
- CHECK_FREQ=7
o2n_lumen_db:
restart: always
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:
restart: always
container_name: o2n_wordpress_db
image: mariadb:latest
environment:
- MYSQL_DATABASE=wordpress
- MYSQL_USER=wordpress
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password