-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.prod.yml
64 lines (59 loc) · 1.38 KB
/
docker-compose.prod.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
version: "3.8"
networks:
nginx_network:
external: true
laravel_disjas:
name: laravel_disjas
services:
nginx:
image: "nginx:latest"
container_name: nginx_disjas
working_dir: "/var/www/html"
volumes:
- "./:/var/www/html"
- "./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf"
depends_on:
- php
networks:
- nginx_network
- laravel_disjas
php:
build:
context: .docker/php
dockerfile: Dockerfile
args:
- PHPUSER=${PHPUSER:-www-data}
- PHPGROUP=${PHPGROUP:-www-data}
container_name: php_disjas
working_dir: "/var/www/html"
volumes:
- "./:/var/www/html"
networks:
- laravel_disjas
composer:
image: "composer:latest"
container_name: composer_disjas
profiles: ["tools"]
working_dir: "/var/www/html"
volumes:
- "./:/var/www/html"
depends_on:
- php
entrypoint: ["composer", "--ignore-platform-reqs"]
networks:
- laravel_disjas
artisan:
build:
context: .docker/php
dockerfile: Dockerfile
args:
- PHPUSER=${PHPUSER:-www-data}
- PHPGROUP=${PHPGROUP:-www-data}
container_name: artisan_disjas
profiles: ["tools"]
volumes:
- ./:/var/www/html:delegated
working_dir: /var/www/html
entrypoint: ["php", "/var/www/html/artisan"]
networks:
- laravel_disjas