-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
108 lines (104 loc) · 2.49 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.4"
services:
wordpress:
depends_on:
- mysql
image: wordpress:4.9.8
restart: always
networks:
mynetwork:
aliases:
- admin.docker.test
- api.docker.test
- static.docker.test
# - api.johnserrano.xyz
- admin.johnserrano.xyz:443
- api.johnserrano.xyz:443
- static.johnserrano.xyz:443
expose:
- "5000"
- "443"
environment:
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
WORDPRESS_DB_NAME: asesor
# WORDPRESS_TABLE_PREFIX: asesorvn_
volumes:
- ./wordpress:/var/www/html
wordpress-stage:
depends_on:
- mysql
image: wordpress:4.9.8
restart: always
networks:
mynetwork:
aliases:
- stageadmin.docker.test
- stageapi.docker.test
- stagestatic.docker.test
# - api.johnserrano.xyz
- stageadmin.johnserrano.xyz:443
- stageapi.johnserrano.xyz:443
- stagestatic.johnserrano.xyz:443
expose:
- "5000"
- "443"
environment:
WORDPRESS_DB_HOST: mysql:3306
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
WORDPRESS_DB_NAME: asesor-stage
# WORDPRESS_TABLE_PREFIX: asesorvn_
volumes:
- ./wordpress-stage:/var/www/html
mysql:
image: mysql:5.7
volumes:
# - ../../../volumes/carros:/var/lib/mysql
- ../../volumes/carros:/var/lib/mysql
restart: always
networks:
- mynetwork
environment:
MYSQL_ROOT_PASSWORD: "${MYSQL_ROOT_PASSWORD}"
MYSQL_DATABASE: "${MYSQL_DATABASE}"
MYSQL_USER: "${MYSQL_USER}"
MYSQL_PASSWORD: "{MYSQL_PASSWORD}"
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --innodb_use_native_aio=0
proxy:
build:
context: .
# target: nginx-dev
target: nginx-prod
depends_on:
- wordpress
- web
restart: always
networks:
- mynetwork
volumes:
- ./logs:/var/log/nginx
- /etc/letsencrypt/:/etc/letsencrypt/
ports:
- "80:80"
- "443:443"
web:
build: ./web
env_file:
- web-variables.env
restart: always
networks:
mynetwork:
aliases:
- docker.test
- johnserrano.xyz
# volumes:
# - ./web:/app
# ports:
# - "3000:3000"
expose:
- "3000"
networks:
mynetwork:
driver: bridge