-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
73 lines (67 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
73 lines (67 loc) · 1.39 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
62
63
64
65
66
67
68
69
70
71
72
73
# v2 syntax
version: '2'
# Named volumes
volumes:
# PostgreSQL Data
codecasts-pgsql-data:
driver: local
# Redis Data
codecasts-redis-data:
driver: local
# ElasticSearch Data
codecasts-elastic-data:
driver: local
services:
# PHP (with Caddy)
app:
image: ambientum/php:7.0-caddy
container_name: codecasts-php
volumes:
- .:/var/www/app
ports:
- "80:8080"
links:
- pgsql
- cache
- elastic
# Laravel Queues
queue:
image: ambientum/php:7.0
container_name: codecasts-queue
command: php artisan queue:listen
volumes:
- .:/var/www/app
links:
- pgsql
- cache
- elastic
# PostgreSQL (9.5)
pgsql:
image: ambientum/postgres:9.5
container_name: codecasts-pgsql
volumes:
- codecasts-pgsql-data:/var/lib/postgresql/data
ports:
- "5432:5432"
environment:
- POSTGRES_DB=codecasts
- POSTGRES_USER=codecasts
- POSTGRES_PASSWORD=codecasts
# Redis
cache:
image: ambientum/redis:3.2
container_name: codecasts-redis
command: --appendonly yes
volumes:
- codecasts-redis-data:/data
ports:
- "6379:6379"
# Elastic Search
elastic:
image: elasticsearch:2.3
container_name: codecasts-elastic
volumes:
- codecasts-elastic-data:/usr/share/elasticsearch/data
ports:
- "9200:9200"
- "9300:9300"