forked from repman-io/repman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
114 lines (107 loc) · 2.39 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
version: '3.4'
services:
database:
restart: always
image: postgres:11.7-alpine
logging:
driver: none
environment:
POSTGRES_USER: main
POSTGRES_PASSWORD: main
POSTGRES_DB: main
ports: [5432]
volumes:
- postgres-data:/var/lib/postgresql/data
app:
restart: always
image: buddy/repman:0.1.0
command: >
bash -c 'bin/console cache:clear &&
bin/console cache:warmup &&
bin/console d:m:m --no-interaction &&
bin/console messenger:setup-transports --no-interaction &&
php-fpm'
env_file: .env.docker
volumes:
- app-var:/app/var
depends_on:
- database
consumer:
restart: always
image: buddy/repman:0.1.0
command: ['bin/console', 'messenger:consume', 'async', '--limit=500']
env_file: .env.docker
volumes:
- app-var:/app/var
depends_on:
- app
cron:
restart: always
image: buddy/repman:0.1.0
command: >
bash -c 'echo "*/5 * * * * /app/bin/console repman:proxy:sync-releases" | crontab - && crond -f -L /dev/stdout'
env_file: .env.docker
volumes:
- app-var:/app/var
depends_on:
- app
nginx:
restart: always
image: nginx:1.17-alpine
env_file: .env.docker
command: ['/nginx/start.sh']
ports:
- 443:443
depends_on:
- app
volumes:
- app-public:/app/public
- docker-logs-nginx/:/var/log/nginx
- docker-nginx-scripts:/nginx
- docker-nginx-ssl-certs:/etc/ssl/certs
- docker-nginx-ssl-private:/etc/ssl/private
mailhog:
restart: always
image: mailhog/mailhog
logging:
driver: none
ports:
- 8025:8025
volumes:
postgres-data:
app-var:
driver: local
driver_opts:
type: none
device: $PWD/var
o: bind
app-public:
driver: local
driver_opts:
type: none
device: $PWD/public
o: bind
docker-logs-nginx:
driver: local
driver_opts:
type: none
device: $PWD/docker/logs/nginx
o: bind
docker-nginx-scripts:
driver: local
driver_opts:
type: none
device: $PWD/docker/nginx/scripts
o: bind
docker-nginx-ssl-certs:
driver: local
driver_opts:
type: none
device: $PWD/docker/nginx/ssl/certs
o: bind
docker-nginx-ssl-private:
driver: local
driver_opts:
type: none
device: $PWD/docker/nginx/ssl/private
o: bind