-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
45 lines (45 loc) · 920 Bytes
/
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
version: '3'
services:
olx-watcher:
build:
context: ./
dockerfile: Dockerfile
image: olx-watcher-8.3/app
container_name: olx-watcher
extra_hosts:
- 'host.docker.internal:host-gateway'
ports:
- '${APP_PORT:-80}:8080'
volumes:
- '.:/var/www/html'
networks:
- olx-watcher
redis:
image: 'redis:alpine'
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
volumes:
- 'olx-watcher-redis:/data'
networks:
- olx-watcher
healthcheck:
test:
- CMD
- redis-cli
- ping
retries: 3
timeout: 5s
mail:
image: boky/postfix
environment:
- ALLOWED_SENDER_DOMAINS=olx-watcher.com
- POSTFIX_always_add_missing_headers=yes
- HOSTNAME=olx-watcher.com
networks:
- olx-watcher
networks:
olx-watcher:
driver: bridge
volumes:
olx-watcher-redis:
driver: local