-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
163 lines (153 loc) · 4.67 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
services:
neo4j:
image: ghcr.io/starpep-web/neo4j-db:latest
restart: unless-stopped
environment:
TZ: ${TIMEZONE}
NEO4J_AUTH: none
redis:
image: redis:7.4.1-alpine
restart: unless-stopped
command: redis-server --save 60 1 --loglevel warning
volumes:
- ./data-redis:/data
environment:
TZ: ${TIMEZONE}
tunnel:
image: cloudflare/cloudflared:2024.10.1
restart: unless-stopped
command: tunnel run
environment:
TZ: ${TIMEZONE}
TUNNEL_TOKEN: ${CLOUDFLARE_TUNNEL_TOKEN}
proxy:
image: traefik:v3.2
restart: unless-stopped
depends_on:
- tunnel
ports:
- "80:8000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.yml:/etc/traefik/traefik.yaml
environment:
TZ: ${TIMEZONE}
labels:
traefik.enable: true
traefik.http.routers.traefik.rule: Host(`${DOMAIN_PROXY}`)
traefik.http.routers.traefik.entrypoints: tunnel
traefik.http.routers.traefik.service: traefik@docker
traefik.http.services.traefik.loadbalancer.server.port: 8080
portainer:
image: portainer/portainer-ce:latest
restart: unless-stopped
volumes:
- ./data-portainer:/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
TZ: ${TIMEZONE}
labels:
traefik.enable: true
traefik.http.routers.portainer.rule: Host(`${DOMAIN_PORTAINER}`)
traefik.http.routers.portainer.entrypoints: tunnel
traefik.http.routers.portainer.service: portainer@docker
traefik.http.services.portainer.loadbalancer.server.port: 9000
api_bio:
image: ghcr.io/starpep-web/api-bio:latest
restart: unless-stopped
depends_on:
- neo4j
- redis
volumes:
- ${ASSETS_FILES_LOCATION}:/opt/files:ro
- ${ASSETS_TEMP_ARTIFACTS_LOCATION}:/tmp/files
environment:
TZ: ${TIMEZONE}
REDIS_URI: redis://redis:6379
NEO4J_DB_URI: bolt://neo4j:7687
ASSETS_LOCATION: /opt/files
TEMP_ARTIFACTS_LOCATION: /tmp/files
api_service:
image: ghcr.io/starpep-web/api-service:latest
restart: unless-stopped
depends_on:
- neo4j
environment:
TZ: ${TIMEZONE}
NEO4J_DB_URI: bolt://neo4j:7687
cron:
image: ghcr.io/starpep-web/cron:latest
restart: unless-stopped
depends_on:
- redis
volumes:
- ${ASSETS_TEMP_ARTIFACTS_LOCATION}:/tmp/files
environment:
TZ: ${TIMEZONE}
REDIS_URI: redis://redis:6379
TEMP_ARTIFACTS_LOCATION: /tmp/files
files:
image: ghcr.io/starpep-web/static-file-server:latest
restart: unless-stopped
depends_on:
- proxy
volumes:
- ${ASSETS_FILES_LOCATION}:/files:ro
- ${ASSETS_TEMP_ARTIFACTS_LOCATION}:/tmp/files:ro
environment:
TZ: ${TIMEZONE}
labels:
traefik.enable: true
traefik.http.routers.files.rule: Host(`${DOMAIN_FILES_SERVER}`)
traefik.http.routers.files.entrypoints: tunnel
traefik.http.routers.files.service: files@docker
traefik.http.services.files.loadbalancer.server.port: 8080
cms:
image: ghcr.io/starpep-web/web-cms:latest
restart: unless-stopped
depends_on:
- proxy
volumes:
- ./data-cms/db:/opt/data
- ./data-cms/public:/opt/app/public
environment:
TZ: ${TIMEZONE}
APP_KEYS: ${CMS_APP_KEYS}
API_TOKEN_SALT: ${CMS_API_TOKEN_SALT}
ADMIN_JWT_SECRET: ${CMS_ADMIN_JWT_SECRET}
TRANSFER_TOKEN_SALT: ${CMS_TRANSFER_TOKEN_SALT}
JWT_SECRET: ${CMS_JWT_SECRET}
DATABASE_CLIENT: sqlite
DATABASE_FILENAME: /opt/data/data.db
labels:
traefik.enable: true
traefik.http.routers.cms.rule: Host(`${DOMAIN_CMS}`)
traefik.http.routers.cms.entrypoints: tunnel
traefik.http.routers.cms.service: cms@docker
traefik.http.services.cms.loadbalancer.server.port: 1337
web:
image: ghcr.io/starpep-web/web-frontend:latest
restart: unless-stopped
depends_on:
- proxy
- api_bio
- api_service
- files
- cms
environment:
TZ: ${TIMEZONE}
API_URL: http://api_service:4000
BIO_API_URL: http://api_bio:8000
LOCAL_DOWNLOADS_URL: http://files:8080
NEXT_PUBLIC_URL: ${WEB_PUBLIC_URL}
NEXT_PUBLIC_DOWNLOADS_URL: ${WEB_PUBLIC_ASSETS_URL}
NEXT_REVALIDATE_TIME: 3600
NEXT_INTERNAL_AUTH_SECRET: ${SHARED_INTERNAL_SECRET}
STRAPI_API_TOKEN: ${WEB_CMS_TOKEN}
NEXT_PUBLIC_STRAPI_URL: ${WEB_CMS_URL}
labels:
traefik.enable: true
traefik.http.routers.web.rule: Host(`${DOMAIN_WEB}`)
traefik.http.routers.web.entrypoints: tunnel
traefik.http.routers.web.service: web@docker
traefik.http.services.web.loadbalancer.server.port: 3000