-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
49 lines (44 loc) · 975 Bytes
/
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
version: '2.1'
services:
meta:
image: busybox # Necessary to make this container valid.
environment:
- MYSQL_USER=drupal
- MYSQL_DATABASE=drupal
- MYSQL_PASSWORD=password
- MYSQL_ROOT_PASSWORD=password
app:
extends:
service: meta
image: APP_IMAGE_NAME
build:
context: ./docker/
args:
USER_ID: '$USER_ID'
GROUP_ID: '$GROUP_ID'
hostname: app
ports:
- 80:80
cap_add:
- ALL
links:
- database:database-host
volumes:
- $HOME/.ssh:/taller/.ssh
- $HOME/.gitconfig:/taller/.gitconfig
- $PWD:/taller/app
- $PWD/temp/.bash_history:/taller/.bash_history
database:
extends:
service: meta
image: mysql:5.6
container_name: DB_CONTAINER_NAME
volumes:
- mysql:/var/lib/mysql
devtools:
image: taller/php7-node
entrypoint: ./docker/run-entrypoint.sh
volumes:
- $PWD:/taller/app
volumes:
mysql: