-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (52 loc) · 1.3 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
services:
web:
image: shinsenter/symfony:dev-php8.3-alpine
volumes:
- ./docker-example-php:/var/www/html
ports:
- "8080:80"
depends_on:
- db
- mail
vue:
image: node:22-alpine3.20
working_dir: /app
environment:
- NODE_ENV=dev
volumes:
- ./docker-example-vue:/app
expose:
- "5173"
ports:
- "8081:5173"
command: "npm run dev -- --host"
depends_on:
- web
swagger:
image: swaggerapi/swagger-ui
ports:
- "8084:8080"
environment:
- SWAGGER_JSON_URL=http://localhost:8080/api/openapi.json
depends_on:
- web
mail:
image: mailhog/mailhog:v1.0.1
restart: on-failure
ports:
- "1025:1025" # SMTP port
- "8085:8025"
db:
image: mysql:8
restart: always
environment:
MYSQL_ROOT_PASSWORD: docker-example
MYSQL_DATABASE: docker-example-db
MYSQL_USER: docker-example-user
MYSQL_PASSWORD: docker-example-user-password
ports:
- "8086:3306"
volumes:
- db_data:/var/lib/mysql
volumes:
db_data: