-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.yml
94 lines (89 loc) · 2.49 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
version: '3'
services:
# frontend logic
frontend:
container_name: frontend
image: ghcr.io/joaovitoriasilva/endurain/frontend:latest
#environment:
#- MY_APP_BACKEND_PROTOCOL=http # http or https, default is http
#- MY_APP_BACKEND_HOST=localhost:98 # api host or local ip (example: 192.168.1.10:98), default is localhost:98
# Configure volume if you want to edit the code locally by clomming the repo
#volumes:
# - <local_path>/endurain/frontend:/app
ports:
- "8080:80" # frontend port, change per your needs
restart: unless-stopped
# API logic
backend:
container_name: backend
image: ghcr.io/joaovitoriasilva/endurain/backend:latest
environment:
- DB_PASSWORD=changeme
- SECRET_KEY=changeme # openssl rand -hex 32
- STRAVA_CLIENT_ID=changeme
- STRAVA_CLIENT_SECRET=changeme
- STRAVA_AUTH_CODE=changeme
- GEOCODES_MAPS_API=changeme
- FRONTEND_PROTOCOL=http # default is http
- FRONTEND_HOST=frontend # frontend host or local ip (example: 192.168.1.10:8080), default is frontend
- FRONTEND_PORT=8080 # default is 80
ports:
- "98:80" # API port, change per your needs
# Configure volume if you want to edit the code locally by clomming the repo
#volumes:
# - <local_path>/endurain/backend:/app
depends_on:
- mariadb
- jaeger
restart: unless-stopped
# mysql mariadb logic
mariadb:
image: mariadb:latest
container_name: mariadb
environment:
- MYSQL_ROOT_PASSWORD=changeme
- MYSQL_DATABASE=endurain
- MYSQL_USER=endurain
- MYSQL_PASSWORD=changeme
ports:
- "3306:3306"
volumes:
- <local_path>/mariadb:/var/lib/mysql
restart: unless-stopped
# Jaeger for opentelemetry
jaeger:
container_name: jaeger
image: jaegertracing/all-in-one:latest
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Lisbon
- COLLECTOR_ZIPKIN_HOST_PORT=:9411
ports:
- 6831:6831/udp
- 6832:6832/udp
- 5778:5778
- 16686:16686
- 4317:4317
- 4318:4318
- 14250:14250
- 14268:14268
- 14269:14269
- 9411:9411
restart: unless-stopped
# phpmyadmin for DB manipulation
phpmyadmin:
container_name: phpmyadmin
image: phpmyadmin
ports:
- 81:80
environment:
- PMA_HOST=mariadb
- PMA_ARBITRARY=1
depends_on:
- mariadb
restart: unless-stopped
networks:
default:
external: true
name: backend_network