-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (57 loc) · 1.32 KB
/
docker-compose.yml
File metadata and controls
65 lines (57 loc) · 1.32 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
53
54
55
56
57
58
59
60
61
62
63
64
version: "3.5"
services:
api:
container_name: dev_pledge_api
image: devpledge/phpfpm-swoole:latest
environment:
docker: "true"
production: "false"
env_file:
#create a .sentry-env use .sentry-example-env as template...
- .sentry-env
#create a .smtp-env use .smtp-example-env as template...
- .smtp-env
#create a .stripe-env use .stripe-example-env as template...
- .stripe-env
#create a .github-env use .github-example-env as template...
- .github-env
- .app-dev-env
volumes:
- .:/var/www:cached
- ./logs:/var/log:cached
expose:
- 9000
- 9501
networks:
- default
- sentry_network
- cache_network
migrations:
depends_on:
- mysql-db
image: twosee/swoole-coroutine
working_dir: /app/src
env_file:
- .app-dev-env
volumes:
- .:/app/src
command: php /app/src/src/CliCommands/StartMigrations.php
mysql-db:
restart: always
image: percona:5.7
env_file:
- .mysql-dev-env
volumes:
- ./data/mysql:/var/lib/mysql:cached
- ./sql:/docker-entrypoint-initdb.d:cached
ports:
- 3311:3306
networks:
default:
name: devpledge_api
sentry_network:
external:
name: global_sentry
cache_network:
external:
name: devpledge_cache