-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
140 lines (130 loc) · 2.77 KB
/
Copy pathdocker-compose.yml
File metadata and controls
140 lines (130 loc) · 2.77 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
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
version: '3.6'
volumes:
knit_mysql_data: {}
networks:
main:
name: knit_main
homepage:
name: knit_homepage
services:
reverse-proxy:
restart: always
image: 'traefik:latest'
networks:
- main
ports:
- '80:80'
volumes:
- './volumes/acme:/etc/traefik/acme'
- '/var/run/docker.sock:/var/run/docker.sock'
labels:
traefik.enable: true
static-proxy:
image: 'knitpk/static-proxy:latest'
restart: always
networks:
- main
build:
context: static-proxy
args:
- KNIT_API_TAG=${KNIT_API_TAG}
- KNIT_API_ADMIN_TAG=${KNIT_API_ADMIN_TAG}
- KNIT_HOMEPAGE_TAG=${KNIT_HOMEPAGE_TAG}
- ADMIN_PUBLIC_URL=/admin
- 'ADMIN_API_URL=http://api.knit.pk.edu.pl'
depends_on:
- api
environment:
- PORT=9988
- 'API_URL=http://api:9501'
- 'HOMEPAGE_URL=http://homepage:3000'
volumes:
- './volumes/images:/usr/src/api/public/media/upload:ro'
labels:
traefik.enable: true
traefik.port: 9988
caching-proxy:
image: 'knitpk/caching-proxy:latest'
restart: always
networks:
main: {}
homepage:
aliases:
- api.knit.pk.edu.pl
build:
context: caching-proxy
depends_on:
- api
- static-proxy
labels:
traefik.docker.network: knit_main
traefik.enable: true
traefik.port: 80
traefik.frontend.rule: 'Host:api.knit.pk.edu.pl'
api:
image: knitpk/api:${KNIT_API_TAG}
env_file: .env.api.dist
restart: always
depends_on:
- mysql
- redis
networks:
- main
environment:
- HOST=api
volumes:
- './volumes/images:/usr/src/api/public/media/upload:rw'
archive:
image: knitpk/archive:${KNIT_ARCHIVE_TAG}
restart: always
depends_on:
- mysql
networks:
- main
environment:
- DATABASE_HOST=mysql
labels:
traefik.enable: true
traefik.port: 80
homepage:
image: knitpk/homepage:${KNIT_HOMEPAGE_TAG}
restart: always
networks:
- main
- homepage
environment:
- PORT=3000
- NODE_ENV=production
- 'API_URL=http://api.knit.pk.edu.pl'
labels:
traefik.docker.network: knit_main
traefik.enable: true
traefik.port: 3000
redis:
image: 'knitpk/redis:latest'
restart: always
networks:
- main
build:
context: redis
mysql:
image: 'mysql:5.7'
restart: always
networks:
- main
volumes:
- 'knit_mysql_data:/var/lib/mysql'
pma:
image: 'knitpk/pma:latest'
restart: always
networks:
- main
build:
context: pma
depends_on:
- mysql
environment:
- PMA_HOST=mysql
labels:
traefik.enable: true
traefik.port: 80