-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-nginx.yml
101 lines (91 loc) · 2.52 KB
/
docker-compose-nginx.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
version: '3.7'
services:
mysql:
image: mysql
restart: always
command: ["--default-authentication-plugin=mysql_native_password"]
networks:
- web
volumes:
- ../../data/newsrss_sf28/mysql:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: Fr1ng3
MYSQL_DATABASE: newsrss_sf28
MYSQL_USER: newsrss
MYSQL_PASSWORD: coucou
mongo:
image: mongo
restart: always
networks:
- web
volumes:
- ../../data/newsrss_sf28/mongo:/data/db
environment:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: Fr1ng3
mongo-express:
image: mongo-express
restart: always
networks:
- web
ports:
- 8081:8081
depends_on:
- mongo
environment:
ME_CONFIG_MONGODB_ADMINUSERNAME: root
ME_CONFIG_MONGODB_ADMINPASSWORD: Fr1ng3
node:
image: node
#restart: always
networks:
- web
working_dir: /usr/src/app
volumes:
- .:/usr/src/app
php:
build:
context: .
target: php
restart: always
networks:
- web
depends_on:
- mysql
- mongo
volumes:
- .:/var/www/html
# - ./logs/symfony:/var/www/html/app/log
nginx:
image: nginx
restart: always
networks:
- nginx-proxy
- web
ports:
- 8888:80
depends_on:
- php
# links:
# - php
volumes:
# - ./logs/nginx:/var/log/nginx
- .:/var/www/html
- ./docker/nginx/conf.d:/etc/nginx/conf.d
environment:
- VIRTUAL_HOST=sf28d.newsrss.net
- LETSENCRYPT_HOST=sf28d.newsrss.net
# elk:
# image: willdurand/elk
# ports:
# - "81:80"
# volumes:
# - ./elk/logstash:/etc/logstash
# - ./elk/logstash/patterns:/opt/logstash/patterns
# - ./logs/symfony:/var/www/html/app/log
# - ./logs/nginx:/var/log/nginx
networks:
web:
nginx-proxy:
external: true