-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
docker-compose.yml
61 lines (58 loc) · 1.09 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
version: "3"
services:
mysql:
container_name: finance-mysql
image: mysql:8.0.21
ports:
- 3306:3306
environment:
MYSQL_DATABASE: homestead
MYSQL_USER: homestead
MYSQL_PASSWORD: secret
MYSQL_ROOT_PASSWORD: secret
networks:
- code-network
volumes:
- mysql-data:/var/lib/mysql
redis:
container_name: finance-redis
image: redis:4.0-alpine
ports:
- 6379:6379
networks:
- code-network
web:
container_name: finance-web
image: nginx:latest
ports:
- 80:80
volumes:
- ./:/var/www/html
- ./docker/php/site.conf:/etc/nginx/conf.d/default.conf
links:
- php
networks:
- code-network
php:
container_name: finance-php
build: ./docker/php
user: "1000"
expose:
- 9000
volumes:
- ./:/var/www/html
networks:
- code-network
node:
container_name: finance-node
image: node
user: "1000"
volumes:
- ./:/var/www/html
networks:
- code-network
networks:
code-network:
driver: bridge
volumes:
mysql-data: