|
1 | | -####################################### |
2 | | -# PHP application Docker container |
3 | | -# |
4 | | -# for this container you have to remove |
5 | | -# following entries from .dockerignore: |
6 | | -# |
7 | | -# etc/* |
8 | | -# provision/* |
9 | | -# app/* |
10 | | -# |
11 | | -####################################### |
12 | | -app: |
13 | | - build: . |
14 | | - dockerfile: Dockerfile.cloud |
15 | | - links: |
16 | | - - mysql |
17 | | - #- postgres |
18 | | - #- mail |
19 | | - #- solr |
20 | | - #- elasticsearch |
21 | | - #- redis |
22 | | - #- memcached |
23 | | - #- ftp |
24 | | - ports: |
25 | | - - "8000:80" |
26 | | - - "8443:443" |
27 | | - - "10022:22" |
28 | | - volumes_from: |
29 | | - - storage |
30 | | - env_file: |
31 | | - - etc/environment.yml |
32 | | - - etc/environment.production.yml |
| 1 | +version: '2' |
| 2 | +services: |
| 3 | + ####################################### |
| 4 | + # PHP application Docker container |
| 5 | + # |
| 6 | + # for this container you have to remove |
| 7 | + # following entries from .dockerignore: |
| 8 | + # |
| 9 | + # etc/* |
| 10 | + # provision/* |
| 11 | + # app/* |
| 12 | + # |
| 13 | + ####################################### |
| 14 | + app: |
| 15 | + build: |
| 16 | + context: . |
| 17 | + dockerfile: Dockerfile.cloud |
| 18 | + links: |
| 19 | + - mysql |
| 20 | + #- postgres |
| 21 | + #- mail |
| 22 | + #- solr |
| 23 | + #- elasticsearch |
| 24 | + #- redis |
| 25 | + #- memcached |
| 26 | + #- ftp |
| 27 | + ports: |
| 28 | + - "8000:80" |
| 29 | + - "8443:443" |
| 30 | + - "10022:22" |
| 31 | + volumes_from: |
| 32 | + - storage |
| 33 | + env_file: |
| 34 | + - etc/environment.yml |
| 35 | + - etc/environment.production.yml |
33 | 36 |
|
34 | | -####################################### |
35 | | -# MySQL server |
36 | | -####################################### |
37 | | -mysql: |
38 | | - build: docker/mysql |
39 | | - #dockerfile: MySQL-5.5 |
40 | | - dockerfile: MySQL-5.6 |
41 | | - #dockerfile: MySQL-5.7 |
42 | | - #dockerfile: MariaDB-5.5 |
43 | | - #dockerfile: MariaDB-10 |
44 | | - #dockerfile: Percona-5.5 |
45 | | - #dockerfile: Percona-5.6 |
46 | | - volumes_from: |
47 | | - - storage |
48 | | - env_file: |
49 | | - - etc/environment.yml |
50 | | - - etc/environment.production.yml |
| 37 | + ####################################### |
| 38 | + # MySQL server |
| 39 | + ####################################### |
| 40 | + mysql: |
| 41 | + build: |
| 42 | + context: docker/mysql/ |
| 43 | + #dockerfile: MySQL-5.5.Dockerfile |
| 44 | + dockerfile: MySQL-5.6.Dockerfile |
| 45 | + #dockerfile: MySQL-5.7.Dockerfile |
| 46 | + #dockerfile: MariaDB-5.5.Dockerfile |
| 47 | + #dockerfile: MariaDB-10.Dockerfile |
| 48 | + #dockerfile: Percona-5.5.Dockerfile |
| 49 | + #dockerfile: Percona-5.6.Dockerfile |
| 50 | + #dockerfile: Percona-5.7.Dockerfile |
| 51 | + volumes_from: |
| 52 | + - storage |
| 53 | + env_file: |
| 54 | + - etc/environment.yml |
| 55 | + - etc/environment.production.yml |
51 | 56 |
|
52 | | -####################################### |
53 | | -# PostgreSQL server |
54 | | -####################################### |
55 | | -#postgres: |
56 | | -# build: docker/postgres/ |
57 | | -# volumes_from: |
58 | | -# - storage |
59 | | -# env_file: |
60 | | -# - etc/environment.yml |
61 | | -# - etc/environment.production.yml |
| 57 | + ####################################### |
| 58 | + # PostgreSQL server |
| 59 | + ####################################### |
| 60 | + #postgres: |
| 61 | + # build: |
| 62 | + # context: docker/postgres/ |
| 63 | + # dockerfile: Postgres-9.4.Dockerfile |
| 64 | + # dockerfile: Postgres-9.5.Dockerfile |
| 65 | + # volumes_from: |
| 66 | + # - storage |
| 67 | + # env_file: |
| 68 | + # - etc/environment.yml |
| 69 | + # - etc/environment.production.yml |
62 | 70 |
|
63 | | -####################################### |
64 | | -# Solr server |
65 | | -####################################### |
66 | | -#solr: |
67 | | -# build: docker/solr/ |
68 | | -# volumes_from: |
69 | | -# - storage |
70 | | -# environment: |
71 | | -# - SOLR_STORAGE=/storage/solr/server-master/ |
72 | | -# env_file: |
73 | | -# - etc/environment.yml |
74 | | -# - etc/environment.production.yml |
| 71 | + ####################################### |
| 72 | + # Solr server |
| 73 | + ####################################### |
| 74 | + #solr: |
| 75 | + # build: |
| 76 | + # context: docker/solr/ |
| 77 | + # volumes_from: |
| 78 | + # - storage |
| 79 | + # environment: |
| 80 | + # - SOLR_STORAGE=/storage/solr/server-master/ |
| 81 | + # env_file: |
| 82 | + # - etc/environment.yml |
| 83 | + # - etc/environment.production.yml |
75 | 84 |
|
76 | | -####################################### |
77 | | -# Elasticsearch |
78 | | -####################################### |
79 | | -#elasticsearch: |
80 | | -# build: docker/elasticsearch/ |
81 | | -# volumes_from: |
82 | | -# - storage |
83 | | -# env_file: |
84 | | -# - etc/environment.yml |
85 | | -# - etc/environment.production.yml |
| 85 | + ####################################### |
| 86 | + # Elasticsearch |
| 87 | + ####################################### |
| 88 | + #elasticsearch: |
| 89 | + # build: |
| 90 | + # context: docker/elasticsearch/ |
| 91 | + # volumes_from: |
| 92 | + # - storage |
| 93 | + # env_file: |
| 94 | + # - etc/environment.yml |
| 95 | + # - etc/environment.production.yml |
86 | 96 |
|
87 | | -####################################### |
88 | | -# Redis |
89 | | -####################################### |
90 | | -#redis: |
91 | | -# build: docker/redis/ |
92 | | -# volumes_from: |
93 | | -# - storage |
94 | | -# env_file: |
95 | | -# - etc/environment.yml |
96 | | -# - etc/environment.production.yml |
| 97 | + ####################################### |
| 98 | + # Redis |
| 99 | + ####################################### |
| 100 | + #redis: |
| 101 | + # build: |
| 102 | + # context: docker/redis/ |
| 103 | + # volumes_from: |
| 104 | + # - storage |
| 105 | + # env_file: |
| 106 | + # - etc/environment.yml |
| 107 | + # - etc/environment.production.yml |
97 | 108 |
|
98 | | -####################################### |
99 | | -# Memcached |
100 | | -####################################### |
101 | | -#memcached: |
102 | | -# build: docker/memcached/ |
103 | | -# volumes_from: |
104 | | -# - storage |
105 | | -# env_file: |
106 | | -# - etc/environment.yml |
107 | | -# - etc/environment.production.yml |
| 109 | + ####################################### |
| 110 | + # Memcached |
| 111 | + ####################################### |
| 112 | + #memcached: |
| 113 | + # build: |
| 114 | + # context: docker/memcached/ |
| 115 | + # volumes_from: |
| 116 | + # - storage |
| 117 | + # env_file: |
| 118 | + # - etc/environment.yml |
| 119 | + # - etc/environment.production.yml |
108 | 120 |
|
109 | | -####################################### |
110 | | -# Mailcatcher |
111 | | -####################################### |
112 | | -#mail: |
113 | | -# build: docker/mail/ |
114 | | -# env_file: |
115 | | -# - etc/environment.yml |
116 | | -# - etc/environment.production.yml |
| 121 | + ####################################### |
| 122 | + # FTP (vsftpd) |
| 123 | + ####################################### |
| 124 | + #ftp: |
| 125 | + # build: |
| 126 | + # context: docker/vsftpd/ |
| 127 | + # volumes_from: |
| 128 | + # - sourcecode |
| 129 | + # - storage |
| 130 | + # env_file: |
| 131 | + # - etc/environment.yml |
| 132 | + # - etc/environment.production.yml |
117 | 133 |
|
118 | | -####################################### |
119 | | -# FTP (vsftpd) |
120 | | -####################################### |
121 | | -#ftp: |
122 | | -# build: docker/vsftpd/ |
123 | | -# volumes_from: |
124 | | -# - sourcecode |
125 | | -# - storage |
126 | | -# env_file: |
127 | | -# - etc/environment.yml |
128 | | -# - etc/environment.production.yml |
129 | | - |
130 | | -####################################### |
131 | | -# Storage |
132 | | -####################################### |
133 | | -storage: |
134 | | - build: docker/storage/ |
135 | | - volumes: |
136 | | - - /storage |
| 134 | + ####################################### |
| 135 | + # Storage |
| 136 | + ####################################### |
| 137 | + storage: |
| 138 | + build: |
| 139 | + context: docker/storage/ |
| 140 | + volumes: |
| 141 | + - /storage |
0 commit comments