-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
71 lines (71 loc) · 1.51 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
version: "2"
services:
nginx:
image: ongr/nginx
links:
- fpm
ports:
- "$LOCAL_NGINX_PORT:80"
volumes:
- .docker/config/nginx/default.conf:/etc/nginx/conf.d/default.conf
- $SYNC_CONTAINER:/var/www:nocopy
networks:
- frontend
fpm:
build:
context: .docker/build/fpm
args:
LOCAL_USER_ID: $LOCAL_USER_ID
LOCAL_GROUP_ID: $LOCAL_GROUP_ID
user: "$LOCAL_USER_ID:$LOCAL_GROUP_ID"
links:
- mariadb
volumes:
- .docker/.composer:/.composer
- $SYNC_CONTAINER:/var/www:nocopy
- "$LOCAL_SSH_PRIVATE_KEY:/home/user/.ssh/id_rsa:ro"
networks:
- frontend
- backend
environment:
XDEBUG_CONFIG: remote_host=172.27.0.1
npm:
image: ongr/nodejs:6.4.0
user: "$LOCAL_USER_ID:$LOCAL_GROUP_ID"
volumes:
- .docker/.npm:/home/.npm
- $SYNC_CONTAINER:/home/app:nocopy
- /usr/local/lib/node_modules
networks:
- frontend
mariadb-data:
image: tianon/true
volumes:
- /var/lib/mysql
networks:
- backend
mariadb:
image: mariadb:10.2.6
ports:
- "$LOCAL_MYSQL_PORT:13306"
volumes_from:
- "mariadb-data"
environment:
# MYSQL_DATABASE: "$MYSQL_DATABASE"
MYSQL_ROOT_PASSWORD: root
networks:
- backend
volumes:
ongr-sync:
external: true
networks:
frontend:
driver: bridge
ipam:
config:
- subnet: 172.27.0.0/24
backend:
driver: bridge
ipam:
config:
- subnet: 172.27.1.0/24