-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
66 lines (61 loc) · 1.6 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
version: '3.9'
services:
php:
build: ./docker/php
container_name: php
volumes:
- ./public:/var/www/html
# env_file:
# - .env
networks:
- app-network
nginx:
image: nginx:latest
container_name: nginx
ports:
- "8080:80"
volumes:
- ./public:/var/www/html
- ./docker/nginx/conf.d/:/etc/nginx/conf.d/
- ./docker/nginx/nginx.conf:/etc/nginx/nginx.conf
- ./docker/nginx/logs:/var/log/nginx
networks:
- app-network
mysql:
image: mysql:5.7
container_name: mysql
environment:
MYSQL_ROOT_PASSWORD: 1111
MYSQL_DATABASE: test
ports:
- "3307:3306"
volumes:
- ./docker/mysql/data:/var/lib/mysql
- ./docker/mysql/local.cnf:/etc/mysql/conf.d/local.cnf
networks:
- app-network
# postgres:
# image: postgres:13
# container_name: postgres
# environment:
# POSTGRES_DB: test
# POSTGRES_USER: postgres
# POSTGRES_PASSWORD: 1111
# env_file:
# - .env
# volumes:
# - ./docker/postgres-data:/var/lib/postgresql/data
# networks:
# - app-network
# redis:
# image: redis:latest
# container_name: redis
# ports:
# - "6379:6379"
# volumes:
# - ./docker/redis-data:/data
# networks:
# - app-network
networks:
app-network:
driver: bridge