-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
79 lines (73 loc) · 1.82 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
70
71
72
73
74
75
76
77
78
79
# Web development environment
version: '2.1'
services:
# To create email during development
maildev:
container_name: maildev
image: djfarrelly/maildev
ports:
- ${MAILDEV_PORT}:80
- 1025:25
# Web Server
web:
extends:
file: services/${WEB_SERVER}.yml
service: web
links:
- php:php
# PHP FPM with Composer & NodeJS (Npm)
php:
image: vfac/envdevphpbase:${PHP_VERSION}
container_name: php
env_file:
- .env
volumes:
- ${PROJECTS_PATH}:/var/www/html/projects/
- ./home:/var/www/html/envdev_home/
- ./conf/php/php.ini:/usr/local/etc/php/php.ini
- ~/.gitconfig:/root/.gitconfig
- ~/.gitconfig:/home/vfac/.gitconfig
- ~/.ssh:/root/.ssh
- ~/.ssh:/home/vfac/.ssh
- ./conf:/envdevconf
user: "${USER_ID}:${GROUP_ID}"
links:
- db:db
- maildev:maildev
- cache:cache
working_dir: /var/www/html/projects
# Cache server
cache:
extends:
file: services/${CACHE_SERVER}.yml
service: cache
# Database
db:
extends:
file: services/${DB}.yml
service: db
# Database admin
dbadmin:
extends:
file: services/${DB}.yml
service: dbadmin
ports:
- ${DBADMIN_PORT}:80
links:
- db
volumes:
dbdata_mariadb:
labels:
com.vfac.description: "VFAC EnvDev Database MariaDB volume"
com.vfac.owner: "VFAC"
com.vfac.url: "https://vfac.fr"
dbdata_mysql:
labels:
com.vfac.description: "VFAC EnvDev Database MySQL volume"
com.vfac.owner: "VFAC"
com.vfac.url: "https://vfac.fr"
dbdata_mongodb:
labels:
com.vfac.description: "VFAC EnvDev Database MongoDB volume"
com.vfac.owner: "VFAC"
com.vfac.url: "https://vfac.fr"