forked from necobm/symfony-api-restfull
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
84 lines (82 loc) · 1.79 KB
/
docker-compose.yml
File metadata and controls
84 lines (82 loc) · 1.79 KB
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
services:
php:
hostname: php
container_name: api-coding-task-php
build:
context: .
dockerfile: Dockerfile
working_dir: /var/www
command: php -S 0.0.0.0:8080 -t public
environment:
- XDEBUG_MODE=coverage
ports:
- "8080:8080"
depends_on:
- db
volumes:
- .:/var/www
networks:
- bridge
db:
hostname: db
container_name: api-coding-task-db
image: mysql:8.0
ports:
- "3306:3306"
volumes:
- database_data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: lotr
healthcheck:
test: "/usr/bin/mysql --user=root --password=root --execute \"SHOW DATABASES;\""
interval: 3s
timeout: 1s
retries: 5
networks:
- bridge
redis:
container_name: api-coding-task-redis
image: redis:7.2-alpine3.19
ports:
- "6379:6379"
networks:
- bridge
command: ["redis-server", "--bind", "redis", "--port", "6379"]
swagger-ui:
container_name: api-coding-task-swagger-ui
image: swaggerapi/swagger-ui
ports:
- "8081:8080"
volumes:
- ./doc/openapi:/usr/share/nginx/html/swagger
environment:
- API_URL=/swagger/openapi.yaml
networks:
- bridge
rabbitmq:
container_name: api-coding-task-rabbitmq
image: rabbitmq:3.9-management-alpine
hostname: rabbitmq
ports:
- "15672:15672"
- "5672:5672"
environment:
- RABBITMQ_DEFAULT_USER=guest
- RABBITMQ_DEFAULT_PASS=guest
networks:
- bridge
jenkins:
container_name: api-coding-task-jenkins
image: jenkins/jenkins:lts
ports:
- "8082:8080"
volumes:
- jenkins_home:/var/jenkins_home
networks:
- bridge
networks:
bridge:
volumes:
database_data:
jenkins_home: