-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·65 lines (62 loc) · 1.75 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
version: '2'
services:
circle-fpm:
container_name: circle-fpm
build: ./Dockerfiles
restart: unless-stopped
environment:
DB_HOST: circle-mysql
DB_DATABASE: circle_db
DB_USERNAME: circle
DB_PASSWORD: cir55cle77
DB_CONNECTION: mysql
links:
- circle-mysql
- circle-redis
volumes:
- ./:/var/www
- ./Dockerfiles/php/local.ini:/usr/local/etc/php/conf.d/local.ini
networks:
- app-network
circle-nginx:
container_name: circle-nginx
image: nginx:alpine
restart: unless-stopped
tty: true
ports:
- 80:80
- 443:443
volumes:
- ./:/var/www
- ./Dockerfiles/nginx/conf.d/:/etc/nginx/conf.d/
networks:
- app-network
circle-mysql:
container_name: circle-mysql
image: mysql:latest
restart: unless-stopped
ports:
- 3306:3306
command: ['--character-set-server=utf8mb4', '--collation-server=utf8mb4_unicode_ci', '--default-authentication-plugin=mysql_native_password']
volumes:
- .docker/data/mysql:/var/lib/mysql
environment:
MYSQL_DATABASE: circle_db
MYSQL_USER: circle
MYSQL_PASSWORD: cir55cle77
MYSQL_ROOT_PASSWORD: cir55cle77
networks:
- app-network
circle-redis:
container_name: circle-redis
image: redis:latest
restart: unless-stopped
ports:
- 6379:6379
volumes:
- .docker/data/redis:/data
networks:
- app-network
networks:
app-network:
driver: bridge