-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
120 lines (116 loc) · 2.92 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
version: "3"
services:
#PHP Service
devcore_php_dev:
build:
context: .
dockerfile: Dockerfile
image: digitalocean.com/php
container_name: devcore_php_dev
restart: unless-stopped
tty: true
environment:
SERVICE_NAME: app
SERVICE_TAGS: dev
PHP_IDE_CONFIG: "serverName=docker-server"
working_dir: /var/www
volumes:
- ./:/var/www
- ./.docker/php/local.ini:/usr/local/etc/php/conf.d/local.ini
- ./.docker/php/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
#- ./.docker/php/log:/var/log
networks:
- app-network
ports:
- "6001:6001"
- "1215:1215"
- "9090:9090"
links:
- devcore_mysql_dev
#Nginx Service
devcore_nginx_dev:
image: nginx:alpine
container_name: devcore_nginx_dev
restart: unless-stopped
tty: true
ports:
- "80:80"
- "443:443"
volumes:
- ./:/var/www
- ./.docker/nginx/conf.d/:/etc/nginx/conf.d/
- ./.docker/nginx/ssl/devcore.test.crt:/etc/ssl/certs/devcore.test.crt
- ./.docker/nginx/ssl/devcore.test.key:/etc/ssl/private/devcore.test.key
networks:
- app-network
#
# #Worker
# worker:
# build:
# context: .
# dockerfile: ./.docker/supervisor/worker.dockerfile
# volumes:
# - .:/var/www
# ports:
# - 6001:6001
#MySQL Service
devcore_mysql_dev:
image: mysql:8
container_name: devcore_mysql_dev
restart: unless-stopped
# PDO Doesn't support MySQL 8 caching_sha2_password Authentication
# @see https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password
command: --default-authentication-plugin=mysql_native_password --secure-file-priv=NULL
tty: true
ports:
- "3306:3306"
environment:
MYSQL_DATABASE: devcore_dev_db
MYSQL_ROOT_PASSWORD: secret
SERVICE_TAGS: dev
SERVICE_NAME: mysql
MYSQL_ROOT_HOST: "%"
volumes:
- ./.docker/mysql/data:/var/lib/mysql/
- ./.docker/mysql/my.cnf:/etc/mysql/my.cnf
networks:
- app-network
#SUPERVISOR service
# devcore_supervisor_dev:
#
# build:
# context: .
# dockerfile: ./.docker/supervisor/supervisor.dockerfile
# volumes:
# - .:/var/www:delegated
# networks:
# - app-network
# command:
# - /bin/sh
# - -c
# - supervisord -c ./.docker/supervisor/supervisord.conf
# - supervisorctl start all
#REDIS service
devcore_redis_dev:
image: redis
container_name: devcore_redis_dev
ports:
- 6379:6379
networks:
- app-network
#beanstalkd driver
devcore_beanstalkd_dev:
image: schickling/beanstalkd
container_name: devcore_beanstalkd_dev
ports:
- 11300:11300
networks:
- app-network
#Docker Networks
networks:
app-network:
driver: bridge
#Volumes
volumes:
dbdata:
driver: local