-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
73 lines (68 loc) · 1.41 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
services:
php:
container_name: logs-service-php
build:
context: .
dockerfile: docker/Dockerfile
restart: unless-stopped
working_dir: /var/www/html
volumes:
- .:/var/www/html
environment:
CORS_ALLOW_ORIGIN: "*"
depends_on:
- database
networks:
- symfony
nginx:
container_name: logs-service-nginx
image: nginx:latest
restart: unless-stopped
ports:
- '8077:80'
volumes:
- .:/var/www/html
- ./docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
depends_on:
- php
networks:
- symfony
database:
container_name: logs-service-database
image: mysql:8.0
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: logs-service
MYSQL_USER: symfony
MYSQL_PASSWORD: symfony
ports:
- '4310:3306'
volumes:
- mysql_data:/var/lib/mysql
networks:
- symfony
redis:
container_name: logs-service-redis
image: redis:latest
restart: unless-stopped
ports:
- '6380:6379'
networks:
- symfony
swagger-ui:
container_name: logs-service-swagger-ui
image: swaggerapi/swagger-ui
restart: unless-stopped
ports:
- "8081:8080"
depends_on:
- nginx
environment:
SWAGGER_JSON_URL: "${SWAGGER_JSON_URL}"
networks:
- symfony
networks:
symfony:
driver: bridge
volumes:
mysql_data: