aboutsummaryrefslogtreecommitdiffhomepage
path: root/docker-compose.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 00000000..c774b621
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,42 @@
1nginx:
2 image: nginx
3 ports:
4 - "8080:80"
5 volumes:
6 - ./docker/nginx/nginx.conf:/nginx.conf
7 - ./docker/logs/nginx:/var/log/nginx
8 - .:/var/www/html
9 links:
10 - php:php
11 command: nginx -c /nginx.conf
12php:
13 build: docker/php
14 ports:
15 - "9000:9000"
16 volumes:
17 - .:/var/www/html
18 #links:
19 # - "postgres:rdbms"
20 # - "mariadb:rdbms"
21 env_file:
22 - ./docker/php/env
23 # Comment non-used DBMS lines
24 # If all DBMS are commented out, sqlite will be used as default
25 # - ./docker/postgres/env
26 # - ./docker/mariadb/env
27#postgres:
28# image: postgres:9
29# ports:
30# - "5432:5432"
31# volumes:
32# - ./docker/data/pgsql:/var/lib/postgresql/data
33# env_file:
34# - ./docker/postgres/env
35#mariadb:
36# image: mariadb:10
37# ports:
38# - "3306:3306"
39# volumes:
40# - ./docker/data/mariadb:/var/lib/mysql
41# env_file:
42# - ./docker/mariadb/env