forked from akeneo/pim-community-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
94 lines (87 loc) · 2.4 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
version: '3.7'
services:
php:
image: 'akeneo/pim-php-dev@sha256:772f7547a65eacb39aba59a53b4012b172f02a11f05cf697bbb64bbce05c1032'
environment:
APP_ENV: '${APP_ENV:-prod}'
COMPOSER_HOME: '/var/www/.composer'
volumes:
- '/etc/dozuki:/etc/dozuki:ro'
- './:/srv/pim'
- '${HOST_COMPOSER_HOME:-./data/composer}:/var/www/.composer'
working_dir: '/srv/pim'
command: 'php'
user: 'www-data'
init: true
networks:
- 'pim'
fpm:
image: 'akeneo/pim-php-dev@sha256:772f7547a65eacb39aba59a53b4012b172f02a11f05cf697bbb64bbce05c1032'
environment:
APP_ENV: '${APP_ENV:-prod}'
volumes:
- '/etc/dozuki:/etc/dozuki:ro'
- './:/srv/pim'
working_dir: '/srv/pim'
command: 'php-fpm -F'
restart: always
networks:
- 'pim'
node:
image: 'akeneo/node:18'
environment:
YARN_CACHE_FOLDER: '/home/node/.yarn'
CYPRESS_CACHE_FOLDER: '/home/node/.cypress'
volumes:
- './:/srv/pim'
- '${HOST_YARN_CACHE_FOLDER:-./data/yarn}:/home/node/.yarn'
working_dir: '/srv/pim'
networks:
- 'pim'
httpd:
image: 'httpd:2.4'
environment:
APP_ENV: '${APP_ENV:-prod}'
depends_on:
- 'fpm'
ports:
- '${DOCKER_PORT_HTTP:-8080}:80'
volumes:
- './:/srv/pim:ro'
- './docker/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro'
- './docker/akeneo.conf:/usr/local/apache2/conf/vhost.conf:ro'
restart: always
privileged: true
networks:
- 'pim'
elasticsearch:
image: 'elastic/elasticsearch:8.4.2'
environment:
ES_JAVA_OPTS: '${ES_JAVA_OPTS:--Xms1g -Xmx1g}'
discovery.type: 'single-node'
xpack.security.enabled: 'false'
indices.id_field_data.enabled: 'true'
ports:
- '${DOCKER_PORT_ELASTICSEARCH:-9210}:9200'
volumes:
- './data/elasticsearch:/usr/share/elasticsearch/data'
restart: always
networks:
- 'pim'
job-consumer:
image: 'akeneo/pim-php-dev@sha256:772f7547a65eacb39aba59a53b4012b172f02a11f05cf697bbb64bbce05c1032'
user: 1000:1000
environment:
APP_ENV: '${APP_ENV:-prod}'
depends_on:
- 'fpm'
volumes:
- '/etc/dozuki:/etc/dozuki:ro'
- './:/srv/pim'
working_dir: '/srv/pim'
command: 'php bin/console messenger:consume ui_job import_export_job data_maintenance_job --env=$APP_ENV'
restart: always
networks:
- 'pim'
networks:
pim: