-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
73 lines (69 loc) · 1.69 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
version: "3.3"
services:
app:
image: axelpal/code-review-tool-app:${IMAGE_TAG:-local}
build:
context: .
dockerfile: ./docker/php/Dockerfile
tty: true
entrypoint: /wait-for postgres:5432 -t 60 -- /app-entrypoint.sh
command: php-fpm -R -F
environment:
XDEBUG_CONFIG: ${XDEBUG_CONFIG}
PHP_IDE_CONFIG: "serverName=code-review-tool"
STARTUP_START_SUPERVISORD: "true"
STARTUP_START_CONSUMERS: "true"
STARTUP_START_CRON: "true"
DEFAULT_WORKERS_COUNT: 2
networks:
app_net:
volumes:
- .:/app:delegated
- ./docker/php/app-entrypoint.sh:/app-entrypoint.sh
- phpstan_data:/tmp/phpstan:delegated
nginx:
image: axelpal/code-review-tool-nginx:${IMAGE_TAG:-local}
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
args:
APP_IMAGE: axelpal/code-review-tool-app:${IMAGE_TAG:-local}
tty: true
networks:
app_net:
volumes:
- ./public:/app/public:delegated
- ./docker/nginx/conf.d:/etc/nginx/conf.d
- ./docker/nginx/includes:/etc/nginx/includes
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
depends_on:
- app
redis:
image: redis
tty: true
profiles:
- db
volumes:
- redis_data:/data:delegated
networks:
app_net:
postgres:
image: postgres:13-alpine
tty: true
profiles:
- db
environment:
POSTGRES_PASSWORD: ${DB_PASSWORD}
networks:
app_net:
volumes:
- postgres_data:/var/lib/postgresql/data:delegated
volumes:
postgres_data:
redis_data:
phpstan_data:
networks:
app_net:
driver: bridge
driver_opts:
com.docker.network.enable_ipv6: "false"