-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.development.yml
71 lines (71 loc) · 1.42 KB
/
docker-compose.development.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: '3.9'
services:
mysql:
image: 'mysql:latest'
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
volumes:
- 'simplemap-data:/var/lib/mysql'
ports:
- '3306:3306'
networks:
- simplemap
php:
build:
context: .
dockerfile: Dockerfile.development
restart: unless-stopped
environment:
DB_DATABASE: '${DB_DATABASE}'
DB_USERNAME: '${DB_USERNAME}'
DB_PASSWORD: '${DB_PASSWORD}'
depends_on:
- mysql
ports:
- '9000:9000'
volumes:
- type: bind
source: .
target: /var/app/current
networks:
- simplemap
nginx:
build:
context: ./services/nginx
dockerfile: Dockerfile.development
restart: unless-stopped
depends_on:
- php
- mysql
ports:
- '80:80'
- '443:443'
volumes:
- type: bind
source: .
target: /var/app/current
networks:
- simplemap
node:
image: 'node:lts-slim'
restart: unless-stopped
command: npm run watch
depends_on:
- php
volumes:
- type: bind
source: .
target: /var/app/current
working_dir: /var/app/current
networks:
- simplemap
networks:
simplemap:
driver: bridge
volumes:
simplemap-data:
driver: local