-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
62 lines (57 loc) · 1.33 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
version: "3.7"
services:
php:
container_name: ${APP_COMPOSE_PROJECT_NAME}_php
image: temafey/php7.4-dev
networks:
- micro-backend
user: 1000:1000
volumes:
- ~/.composer/cache/:/.composer_cache/:rw
- .:/app:rw
working_dir: /app
restart: on-failure
command: '/app/bin/console swoole:server:run'
ports:
- 9501:9501
- 9200:9200
nginx:
container_name: ${APP_COMPOSE_PROJECT_NAME}_nginx
image: nginx
networks:
- micro-backend
working_dir: '/app'
volumes:
- ./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./:/app
depends_on:
- php-fpm
ports:
- 80:80
php-fpm:
container_name: ${APP_COMPOSE_PROJECT_NAME}_php_fpm
image: temafey/php7.4-dev-fpm
networks:
- micro-backend
user: 1000:1000
environment:
PHP_IDE_CONFIG: serverName=docker
volumes:
- ~/.composer/cache/:/.composer_cache/:rw
- ./:/app:rw
working_dir: /app
tasks:
container_name: ${APP_COMPOSE_PROJECT_NAME}_tasks
image: temafey/php7.4-dev
networks:
- micro-backend
user: 1000:1000
volumes:
- .:/app:rw
working_dir: /app
restart: on-failure
command: '/app/bin/console enqueue:consume -c task'
networks:
micro-backend:
name: micro-backend
driver: bridge