-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
68 lines (61 loc) · 1.68 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
version: "3.1"
services:
mariadb:
image: 'mariadb:10.6'
container_name: mariadb_encurtador
working_dir: /application
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=encurtador
- MYSQL_USER=encurtador
- MYSQL_PASSWORD=encurtador
ports:
- "58003:3306"
volumes:
- './docker/mariadb_data:/var/lib/mysql'
phpmyadmin:
image: 'phpmyadmin'
container_name: phpmyadmin_encurtador
restart: 'always'
ports:
- '8009:80'
environment:
- PMA_ARBITRARY=1
- UPLOAD_LIMIT=300M
- PMA_HOST=mariadb_encurtador
- PMA_USER=encurtador
- PMA_PASSWORD=encurtador
- PMA_DATABASE=encurtador
webserver:
image: 'nginx:alpine'
container_name: webserver_encurtador
working_dir: /application
volumes:
- '.:/application'
- './docker/nginx/nginx.conf:/etc/nginx/conf.d/default.conf'
ports:
- '8000:80'
php-fpm:
build: 'docker/php-fpm'
container_name: php_encurtador
working_dir: /application
volumes:
- '.:/application'
- './docker/php-fpm/php_browscap.ini:/etc/php.d/browscap.ini'
- './docker/php-fpm/php-fpm.conf:/etc/php/8.1/fpm/conf.d/99-overrides.ini'
- './docker/php-fpm/php-fpm.conf:/etc/php/8.1/cli/conf.d/99-overrides.ini'
redis:
image: redis
container_name: redis_encurtador
command: redis-server --appendonly yes
ports:
- "6379:6379"
redis-commander:
container_name: redis-commander_encurtador
hostname: redis-commander
image: rediscommander/redis-commander:latest
restart: always
environment:
- REDIS_HOSTS=local:redis_encurtador:6379
ports:
- "8081:8081"