-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (58 loc) · 1.12 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
services:
db:
container_name: wod_db
image: mysql
environment:
- MYSQL_HOST=localhost
- MYSQL_ROOT_PASSWORD=root
ports:
- "3306:3306"
volumes:
- db:/var/lib/mysql
nginx:
build:
context: ./docker
dockerfile: Dockerfile-nginx
container_name: wod_nginx
links:
- php
ports:
- "666:80"
volumes:
- ./:/var/www/darkness:cached
node:
command: sh ./watch.sh
container_name: wod_node
depends_on:
- php
image: node:20-alpine
ports:
- "8080:8080"
restart: on-failure
volumes:
- ./:/var/www/darkness:cached
working_dir: /var/www/darkness
phpmyadmin:
container_name: wod_phpmyadmin
image: phpmyadmin/phpmyadmin
links:
- db
ports:
- '8081:80'
environment:
- PMA_HOST=db
- MYSQL_ROOT_PASSWORD=root
- UPLOAD_LIMIT=300M
php:
build:
context: ./docker
dockerfile: Dockerfile-php
container_name: wod_php
environment:
- COMPOSER_MEMORY_LIMIT=-1
links:
- db
volumes:
- ./:/var/www/darkness:cached
volumes:
db: