-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
89 lines (81 loc) · 2.92 KB
/
docker-compose.yml
File metadata and controls
89 lines (81 loc) · 2.92 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
################################################################################
#
# 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 <contact@splashsync.com>
#
################################################################################
################################################################################
# Docker Compose File
#
# This Docker File intend to Create a Complete Dev Environment
#
# To us different Versions configured, you need to add hosts to /etc/hosts
#
# 172.201.0.10 dev.tasking.local
# 172.201.0.200 phpmyadmin.tasking.local
#
################################################################################
services:
################################################################################
# MySQL Container
mysql:
image: mysql:5.7
container_name: mysql.tasking.local
logging: { driver: "none" }
environment:
- "MYSQL_ROOT_PASSWORD=tasking"
- "MYSQL_DATABASE=tasking"
- "MYSQL_USER=tasking"
- "MYSQL_PASSWORD=tasking"
networks:
tasking: { ipv4_address: 172.201.0.100, aliases: [ mysql.tasking.local ] }
################################################################################
# Dolibarr Latest (Develop)
app:
build:
context: ./docker
container_name: dev.tasking.local
depends_on:
- mysql
volumes:
- "./:/var/www/html/"
- symfony-var:/var/www/html/var
command: sh /var/www/html/docker/docker-entrypoint.sh
hostname: dev.tasking.local
networks:
tasking: { ipv4_address: 172.201.0.10, aliases: [ dev.tasking.local ] }
################################################################################
# PhpMyAdmin Container
phpmyadmin:
image: phpmyadmin/phpmyadmin:5
container_name: phpmyadmin.tasking.local
logging: { driver: "none" }
depends_on:
- mysql
environment:
- PMA_HOST=mysql
- MYSQL_USER=tasking
- MYSQL_ROOT_PASSWORD=tasking
- MYSQL_PASSWORD=tasking
networks:
tasking: { ipv4_address: 172.201.0.200, aliases: [ phpmyadmin.tasking.local ] }
volumes:
symfony-var: ~
networks:
################################################################################
# Default Private Network
tasking:
driver: bridge
ipam:
config:
- subnet: 172.201.0.0/24