-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·69 lines (63 loc) · 2.23 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
################################################################################
#
# This file is part of SplashSync Project.
#
# Copyright (C) Splash Sync <www.splashsync.com>
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# For the full copyright and license information, please view the LICENSE
# file that was distributed with this source code.
#
# @author Bernard Paquier <[email protected]>
#
################################################################################
################################################################################
# Docker Compose File
#
# This Docker File intend to Create a Complete Widget Envirenement
# for Developpement or Tests of Widget Bundle
#
# You can to add host to /etc/hosts
#
# 172.169.1.1 widgets.splashsync.local
#
################################################################################
version: '3.4'
services:
################################################################################
# Symfony Server Container
symfony:
build:
context: ./docker
dockerfile: Dockerfile
container_name: widgets-php
volumes:
- './:/project'
- ~/.composer:/home/docker/.composer
hostname: widgets.splashsync.local
command: ["php", "/project/bin/console", "server:run", "-d/project/web", "172.169.1.10:80"]
networks:
widgets: { ipv4_address: 172.169.1.10 }
################################################################################
# Node JS Container
node:
image: 'node:8-slim'
user: 'node'
container_name: widgets-nodeJs
volumes:
- './:/app'
- ~/.cache/yarn:/home/node/.yarn-cache
working_dir: '/app'
networks:
- 'widgets'
networks:
################################################################################
# Default Private Network
widgets:
driver: bridge
ipam:
config:
- subnet: 172.169.1.0/24