-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
84 lines (78 loc) · 2.54 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
version: "3.1"
services:
ssl:
container_name: ssl
restart: always
image: labdocodigo/ssl
volumes:
- "./config/ssl/nginx.conf:/etc/nginx/nginx.conf"
- "./config/ssl/mime.types:/etc/nginx/mime.types"
- "./config/ssl/default.conf:/etc/nginx/conf.d/default.conf"
- "./config/ssl/key/:/etc/ssl/"
- "./config/ssl/naxsi_core.rules:/etc/nginx/naxsi_core.rules"
- "./config/ssl/naxsi.rules:/etc/nginx/naxsi.rules"
- "./log/ssl/:/var/log/nginx/"
- "./src/:/var/www/html/"
ports:
- "80:80"
- "443:443"
links:
- varnish
- web
depends_on:
- varnish
- web
varnish:
container_name: varnish
restart: always
image: labdocodigo/varnish
volumes:
- "./config/varnish:/etc/default/varnish"
- "./config/varnish/default.vcl:/etc/varnish/default.vcl"
links:
- web
depends_on:
- web
web:
container_name: web
restart: always
image: labdocodigo/web
volumes:
- "./config/web/nginx.conf:/etc/nginx/nginx.conf"
- "./config/web/mime.types:/etc/nginx/mime.types"
- "./config/web/default.conf:/etc/nginx/conf.d/default.conf"
- "./log/web/:/var/log/nginx/"
- "./src/:/var/www/html/"
depends_on:
- php
php:
container_name: php
restart: always
image: labdocodigo/php
volumes:
- "./config/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "./config/php/php-fpm.conf:/usr/local/etc/php-fpm.conf"
- "./config/php/docker.conf:/usr/local/etc/php-fpm.d/docker.conf"
- "./config/php/www.conf:/usr/local/etc/php-fpm.d/www.conf"
- "./config/php/zz-docker.conf:/usr/local/etc/php-fpm.d/zz-docker.conf"
- "./log/php/:/var/log/"
- "./src/:/var/www/html/"
links:
- postgresql
depends_on:
- postgresql
postgresql:
container_name: postgresql
restart: always
image: postgres:11-alpine
environment:
- POSTGRES_DB=superhype
- POSTGRES_USER=superhype
- POSTGRES_PASSWORD=Jeremias3374
volumes:
- "./config/postgresql/:/etc/postgresql/"
- "postgresql:/var/lib/postgresql/data/"
ports:
- "5432:5432"
volumes:
postgresql: