/
docker-compose.yml
49 lines (44 loc) · 1 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
version: "3.7"
services:
web:
container_name: "${PREFIX}_web"
image: nginx:alpine
working_dir: /src
ports:
- "${WEB_PORT:-8000}:80"
volumes:
- ./docker/nginx/server.conf:/etc/nginx/conf.d/default.conf
- "${BACKEND_PATH}:/src"
links:
- php
artisan:
container_name: "${PREFIX}_artisan"
image: stellarcli/php-cli
entrypoint:
- php
- artisan
user: ${CURRENT_UID}
working_dir: /src
volumes:
- "${BACKEND_PATH}:/src"
phpunit:
container_name: "${PREFIX}_phpunit"
image: stellarcli/php-cli
entrypoint:
- vendor/bin/phpunit
user: ${CURRENT_UID}
working_dir: /src
volumes:
- "${BACKEND_PATH}:/src"
php:
container_name: "${PREFIX}_php"
image: stellarcli/php-fpm
working_dir: /src
user: ${CURRENT_UID}
volumes:
- "${BACKEND_PATH}:/src"
- ./docker/php/overrides.ini:/etc/php/7.3/fpm/conf.d/99-overrides.ini
networks:
default:
external:
name: stellar-network