forked from inshopgroup/inshop-crm-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
74 lines (67 loc) · 1.38 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
74
version: '3.2'
services:
php:
image: inshopgroup/docker-inshop-crm-api-php-fpm-dev:latest
depends_on:
- db
env_file:
- ./.env
command: sh ./bin/entrypoint.sh
volumes:
- .:/var/www:rw,cached
- files-data:/var/www/var/files:rw
networks:
- api
nginx:
image: inshopgroup/docker-inshop-crm-api-nginx-prod:latest
depends_on:
- php
volumes:
- ./public:/var/www/public:ro
ports:
- ${PORT_API}:80
networks:
- api
db:
image: postgres:11.4-alpine
environment:
- POSTGRES_DB=${DATABASE_NAME}
- POSTGRES_USER=${DATABASE_USER}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
volumes:
- db-data:/var/lib/postgresql/data:rw
ports:
- ${PORT_DATABASE}:5432
networks:
- api
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.1
environment:
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- es-data:/usr/share/elasticsearch/data
ports:
- ${PORT_ELASTIC}:9200
networks:
- api
- esnet
redis:
image: redis:latest
volumes:
- redis-data:/var/lib/redis
networks:
- api
volumes:
es-data: {}
db-data: {}
redis-data: {}
files-data: {}
images-data: {}
networks:
esnet:
api: