-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (55 loc) · 1.23 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
version: "3"
volumes:
dbdata:
networks:
coronadados-network:
driver: bridge
services:
mysql:
container_name: coronadados-mysql
image: mysql:5.7
volumes:
- dbdata:/var/lib/mysql
environment:
- MYSQL_DATABASE=coronadados
- MYSQL_USER=corona_user
- MYSQL_PASSWORD=corona_pass
- MYSQL_ROOT_PASSWORD=c0r0ng@
ports:
- 3306:3306
networks:
- coronadados-network
webserver:
image: nginx:alpine
container_name: coronadados-webserver
working_dir: /application
volumes:
- .:/application
- ./docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- "8000:80"
networks:
- coronadados-network
depends_on:
- app
app:
build: docker/php-fpm
container_name: coronadados-app
working_dir: /application
volumes:
- .:/application
- ./docker/php-fpm/php-ini-overrides.ini:/etc/php/7.2/fpm/conf.d/99-overrides.ini
links:
- mysql
networks:
- coronadados-network
redis:
image: redis:4.0
container_name: corona-redis
env_file:
- .env
command: redis-server --requirepass ${REDIS_PASSWORD}
ports:
- "6379:6379"
networks:
- coronadados-network