Skip to content

Commit 45c4bd8

Browse files
committed
NEXT-24114 - Fix docker-compose with symfony-cli
1 parent d7f38ab commit 45c4bd8

File tree

1 file changed

+32
-38
lines changed

1 file changed

+32
-38
lines changed

docker-compose.yaml

Lines changed: 32 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,39 @@
11
version: '3.7'
22

33
services:
4-
app:
5-
image: shopware/development:8.1-composer-2
6-
depends_on: [database]
7-
tmpfs:
8-
- /tmp:mode=1777
9-
volumes:
10-
- .:/app
11-
ports: [8000]
12-
environment:
13-
DATABASE_URL: mysql://root:root@database:3306/main
4+
database:
5+
image: mysql:${MYSQL_VERSION:-8}-oracle
6+
ports:
7+
- '3306:3306'
8+
tmpfs:
9+
- /var/lib/mysql:uid=999,gid=999
10+
environment:
11+
MYSQL_ROOT_PASSWORD: root
12+
MYSQL_DATABASE: shopware
1413

15-
database:
16-
image: mariadb:10.4
17-
ports: [3306]
18-
entrypoint: ["docker-entrypoint.sh", "--default-authentication-plugin=mysql_native_password"]
19-
tmpfs:
20-
- /var/lib/mysql:uid=999,gid=999
21-
environment:
22-
MYSQL_ROOT_PASSWORD: root
23-
MYSQL_PASSWORD: root
24-
MYSQL_DATABASE: main
14+
adminer:
15+
image: adminer:latest
16+
depends_on: [ database ]
17+
environment:
18+
ADMINER_DEFAULT_SERVER: database
19+
ports:
20+
- '8080:8080'
2521

26-
adminer:
27-
image: adminer:latest
28-
depends_on: [database]
29-
environment:
30-
ADMINER_DEFAULT_SERVER: database
31-
ports: [ 8080 ]
22+
mailer:
23+
image: mailhog/mailhog
24+
ports:
25+
- '8025:8025'
3226

33-
mailer:
34-
image: mailhog/mailhog
35-
ports: [8025]
36-
37-
elasticsearch:
38-
image: elasticsearch:7.8.0
39-
ports: [9200]
40-
environment:
41-
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
42-
- discovery.type=single-node
43-
- http.cors.allow-origin=http://localhost:8003
44-
- http.cors.enabled=true
27+
opensearch:
28+
image: opensearchproject/opensearch:2
29+
ports:
30+
- '9200:9200'
31+
volumes:
32+
- opensearch-data:/usr/share/opensearch/data
33+
environment:
34+
discovery.type: single-node
35+
plugins.security.disabled: 'true'
4536

37+
volumes:
38+
db-data:
39+
opensearch-data:

0 commit comments

Comments
 (0)