-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (61 loc) · 1.51 KB
/
docker-compose.yml
File metadata and controls
61 lines (61 loc) · 1.51 KB
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
version: '3'
services:
redisnotif:
image: redis:latest
container_name: gitlab-notification-redis
ports:
- "6479:6379"
volumes:
- $PWD/redis-data:/var/lib/redis
- $PWD/redis.conf:/usr/local/etc/redis/redis.conf
nginx:
hostname: telegram-gitlab-nginx
image: nginx:latest
container_name: gitlab-notification-nginx
ports:
- ${APP_HTTP_PORT:-3000}:80
volumes:
- ./:/var/www
- ./tmp/nginx/logs:/var/log/nginx
- ./_docker/local/nginx/conf.d:/etc/nginx/conf.d
depends_on:
- app
links:
- app
working_dir: /var/www
app:
hostname: telegram-gitlab-app
build:
context: .
dockerfile: _docker/local/app/Dockerfile
container_name: gitlab-notification-app
volumes:
- ./:/var/www
depends_on:
- db
links:
- db
working_dir: /var/www
queue:
build:
context: .
dockerfile: _docker/local/app/Dockerfile
container_name: gitlab-notification-queue
hostname: telegram-gitlab-queue
command: php artisan queue:listen database --queue=${QUEUE_NAME:-default} --timeout=1800 --tries=${QUEUE_TRIES:-10} --delay=${QUEUE_DELAY:-3}
restart: always
volumes:
- ./:/var/www
depends_on:
- app
db:
build:
context: .
dockerfile: _docker/local/db/Dockerfile
container_name: gitlab-notification-db
volumes:
- ./tmp/postgresql_gitlab_db:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgres
ports:
- 15512:5432