-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml.dist
72 lines (71 loc) · 1.83 KB
/
docker-compose.yml.dist
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
##
# This file is part of the fnayou/oh-my-docker package.
#
# Copyright (c) 2017. Aymen FNAYOU <fnayou.aymen@gmail.com>
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
##
version: '3.3'
services:
# nginx container
nginx:
image: nginx
ports:
- "8080:80"
volumes:
- ./docker/nginx/nginx.conf:/nginx.conf
- ./docker/logs/nginx:/var/log/nginx
- ./:/var/www/html
depends_on:
- php
- mailcatcher
command: nginx -c /nginx.conf
# php container
php:
build:
context: docker/php
ports:
- "9000:9000"
volumes:
- ./docker/bash/bash_profile:/root/.bash_profile
- ./docker/bash/bashrc:/root/.bashrc
- ./docker/bash/bash_aliases:/root/.bash_aliases
- ./:/var/www/html
working_dir: /var/www/html
depends_on:
- mariadb
# maria DB container
mariadb:
image: mariadb:10
ports:
- "3306:3306"
volumes:
- ./docker/data/mariadb:/var/lib/mysql
env_file:
- ./docker/mariadb/.env
# postgres DB container
postgres:
image: postgres:9
ports:
- "5432:5432"
volumes:
- ./docker/data/pgsql:/var/lib/postgresql/data
env_file:
- ./docker/postgres/.env
# couch DB container
couchdb:
image: couchdb
ports:
- 5984:5984
# mongo DB container
mongo:
image: mongo
ports:
- "27017:27017"
# mailcatcher
mailcatcher:
image: schickling/mailcatcher
environment:
- VIRTUAL_HOST=mailcatcher.project.loc
- VIRTUAL_PORT=1080