-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
81 lines (79 loc) · 1.81 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
72
73
74
75
76
77
78
79
80
81
version: "3"
services:
#ちなみにnodeはphp-fpm内にnodeを入れる
php-fpm:
container_name: lara_nux_php
build:
context: .
dockerfile: ./docker/php-fpm/Dockerfile
ports:
- 9000:9000
volumes:
- ./laravel/:/var/www/html/
networks:
- lara_nux
nginx:
container_name: lara_nux_nginx
image: nginx:alpine
depends_on:
- php-fpm
ports:
- 80:80
volumes:
- ./laravel/:/var/www/html/
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
networks:
- lara_nux
node:
container_name: lara_nux_node
build:
context: "./docker/node"
dockerfile: "Dockerfile"
volumes:
- ./nuxt/:/var/www/html
tty: true
environment:
- NODE_ENV=development
- HOST=0.0.0.0
- CHOKIDAR_USEPOLLING=true
ports:
- "3000:3000"
networks:
- lara_nux
db:
container_name: lara_nux_db
build:
context: "./docker/postgres"
dockerfile: "Dockerfile"
depends_on:
- php-fpm
ports:
- 5432:5432
#volumes:
# もし永続化させたいときにはこの部分を記載
# - ./data/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_DB=lara_nux
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
networks:
- lara_nux
localstack:
image: localstack/localstack
container_name: lara_nux_s3
ports:
- 4566:4566
environment:
- DEFAULT_REGION=ap-northeast-1
- SERVICES=s3
- AWS_ACCESS_KEY_ID=dummy
- AWS_SECRET_ACCESS_KEY=dummy
- DATA_DIR=/tmp/localstack/data
volumes:
- ./docker/localstack/data:/tmp/localstack/data
networks:
- lara_nux
networks:
lara_nux:
driver: "bridge"