-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
52 lines (51 loc) · 1.37 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
##
# This file is part of the fnayou/dotted package.
#
# Copyright (c) 2016. 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.7'
services:
# nginx
nginx:
container_name: dotted_nginx
image: nginx
expose:
- "80"
volumes:
- ./docker/nginx/nginx.conf:/nginx.conf
- ./docker/logs/nginx:/var/log/nginx
- ./:/var/www/html
environment:
- VIRTUAL_HOST=dotted.loc
depends_on:
- php
command: nginx -c /nginx.conf
networks:
dotted_network:
ipv4_address: 172.13.10.3
# php
php:
container_name: dotted_php
build:
context: docker/php
dockerfile: Dockerfile
expose:
- 8000
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
networks:
dotted_network:
ipv4_address: 172.13.10.4
networks:
dotted_network:
ipam:
driver: default
config:
- subnet: "172.13.10.0/24"