-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdocker-compose-ci.yml
124 lines (113 loc) · 3.41 KB
/
docker-compose-ci.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
services:
postgres:
image: postgres:12.1-alpine
container_name: shopsys-framework-postgres
volumes:
- postgres-data:/var/lib/postgresql/data:rw
- ./app/docker/postgres/postgres.conf:/var/lib/postgresql/data/postgresql.conf
environment:
- PGDATA=/var/lib/postgresql/data/pgdata
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=shopsys
command:
- postgres
- -c
- config_file=/var/lib/postgresql/data/postgresql.conf
webserver:
image: nginx:1.27-alpine
container_name: shopsys-framework-webserver
depends_on:
- php-fpm
- storefront
volumes:
- web-volume:/var/www/html/web
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8000:8080"
storefront:
image: ${STOREFRONT_TAG}
container_name: shopsys-framework-storefront
ports:
- "3000:3000"
php-fpm:
image: ${TAG}
container_name: shopsys-framework-php-fpm
volumes:
- web-volume:/var/www/html/web
ports:
- "35729:35729"
cypress:
build:
context: ./storefront/cypress
dockerfile: ./docker/Dockerfile
container_name: shopsys-framework-cypress
volumes:
- ./storefront/cypress:/app
- node_modules:/app/node_modules
profiles:
- storefront-acceptance-tests
network_mode: "host"
environment:
- GROUP=${GROUP}
cypress-regenerate-screenshots:
build:
context: ./storefront/cypress
dockerfile: ./docker/Dockerfile
container_name: shopsys-framework-cypress-regenerate
volumes:
- ./storefront/cypress:/app
- node_modules:/app/node_modules
profiles:
- storefront-regenerate-screenshots
network_mode: "host"
environment:
- TYPE=base
- COMMAND=run
- GROUP=${GROUP}
redis:
image: redis:7.4-alpine
container_name: shopsys-framework-redis
selenium-server:
image: seleniarm/standalone-firefox:4.9.0
container_name: shopsys-framework-acceptance-tests
ports:
- "4400:4444"
- "5900:5900"
- "7900:7900"
environment:
- HUB_PORT_4444_TCP_ADDR=hub
- HUB_PORT_4444_TCP_PORT=4444
shm_size: '2GB'
elasticsearch:
build:
context: ./app
dockerfile: docker/elasticsearch/Dockerfile
container_name: shopsys-framework-elasticsearch
privileged: false
ulimits:
nofile:
soft: 65536
hard: 65536
ports:
- "9200:9200"
environment:
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx1024m"
img-proxy:
image: ghcr.io/imgproxy/imgproxy:latest
container_name: shopsys-framework-img-proxy
ports:
- "8060:8080"
rabbitmq:
image: rabbitmq:3.12-management-alpine
container_name: shopsys-framework-rabbitmq
ports:
- "15672:15672"
volumes:
web-volume:
postgres-data:
driver_opts:
type: tmpfs
device: tmpfs
node_modules: