forked from sathvikchilakala/cs-club-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (62 loc) · 1.51 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
version: '3.8'
networks:
csclub:
services:
nginx:
image: nginx:stable-alpine
depends_on:
- php
networks:
- csclub
container_name: nginx_csclub
ports:
- "81:80"
volumes:
- ./src:/var/www/html
- ./dockerfiles/nginx/default:/etc/nginx/conf.d/default.conf
php:
networks:
- csclub
container_name: php_csclub
environment:
- COMPOSER_MEMORY_LIMIT=-1
ports:
- "9001:9000"
volumes:
- ./src:/var/www/html
build:
context: .
dockerfile: ./dockerfiles/php.dockerfile
composer:
networks:
- csclub
volumes:
- ./src:/app
depends_on:
- nginx
container_name: composer_csclub
build:
context: .
dockerfile: ./dockerfiles/composer.dockerfile
npm:
image: node:13.7
container_name: npm_csclub
volumes:
- ./src:/app
working_dir: /app
command: ["/app/npm-dev.sh"]
depends_on:
- nginx
artisan:
networks:
- csclub
container_name: artisan_csclub
environment:
- COMPOSER_MEMORY_LIMIT=-1
volumes:
- ./src:/var/www/html
build:
context: .
dockerfile: ./dockerfiles/php.dockerfile
working_dir: /var/www/html/
entrypoint: ['php', '/var/www/html/artisan']