-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (49 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
52 lines (49 loc) · 1.23 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
version: '3'
### Services
services:
### Web Server Container
web:
image: lobsterk/web-nginx-php
container_name: web
restart: always
ports:
- "8172:80"
volumes:
- ./:/var/www/
- ./.docker/nginx/default.conf:/etc/nginx/conf.d/default.conf
- ./.docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./.docker/php-fpm/php.ini:/etc/php/7.4/fpm/php.ini
- ./.docker/php-fpm/php-fpm.conf:/etc/php/7.4/fpm/php-fpm.conf
## MySQL Container
mysql:
image: mysql:8.0
container_name: mysql
restart: always
ports:
- "3306:3306"
# volumes:
# - ./mysql/:/docker-entrypoint-initdb.d/
# - ./.docker/mysql/:/etc/mysql/conf.d/
environment:
MYSQL_DATABASE: dbtest
MYSQL_USER: user
MYSQL_PASSWORD: 1234
MYSQL_ROOT_PASSWORD: r1234
# Adminer container
adminer:
image: adminer
container_name: adminer
links:
- "mysql"
ports:
- "8080:8080"
# Redis
redis:
image: 'bitnami/redis:latest'
environment:
- REDIS_PASSWORD=my_master_password
# - ALLOW_EMPTY_PASSWORD=yes
ports:
- '6379:6379'
# volumes:
# - ./.docker/redis:/bitnami