forked from infosave2007/phpblockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (56 loc) · 1.13 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (56 loc) · 1.13 KB
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
version: '3.8'
services:
blockchain:
build: .
ports:
- "8080:80"
volumes:
- ./storage:/var/www/html/storage
- ./logs:/var/www/html/logs
environment:
- PHP_ENV=production
- BLOCKCHAIN_NETWORK=mainnet
depends_on:
- database
networks:
- blockchain-network
database:
image: mysql:8.0
environment:
- MYSQL_ROOT_PASSWORD=blockchain123
- MYSQL_DATABASE=blockchain
- MYSQL_USER=blockchain
- MYSQL_PASSWORD=blockchain123
volumes:
- db_data:/var/lib/mysql
- ./database:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
networks:
- blockchain-network
redis:
image: redis:7-alpine
ports:
- "6379:6379"
volumes:
- redis_data:/data
networks:
- blockchain-network
nginx:
image: nginx:alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./docker/nginx.conf:/etc/nginx/nginx.conf
- ./:/var/www/html
depends_on:
- blockchain
networks:
- blockchain-network
volumes:
db_data:
redis_data:
networks:
blockchain-network:
driver: bridge