generated from SachaWildCode/angular-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
74 lines (69 loc) · 1.71 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
services:
mysql:
image: mysql:8.0
container_name: mysql
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: heartlink
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
volumes:
- mysql-data:/var/lib/mysql
networks:
- heartlink_network
env_file:
- .env
healthcheck:
test: ['CMD-SHELL', 'mysqladmin ping -h localhost']
interval: 10s
timeout: 5s
retries: 3
start_period: 30s
springboot:
image: sachawildcode/heartlink_back:latest
container_name: springboot
restart: unless-stopped
depends_on:
mysql:
condition: service_healthy
environment:
SPRING_DATASOURCE_URL: jdbc:mysql://mysql:3306/heartlink?createDatabaseIfNotExist=true&serverTimezone=UTC
SPRING_DATASOURCE_USERNAME: ${MYSQL_USER}
SPRING_DATASOURCE_PASSWORD: ${MYSQL_PASSWORD}
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRATION: ${JWT_EXPIRATION}
COOKIE_EXPIRATION: ${COOKIE_EXPIRATION}
SPRING_PROFILES_ACTIVE: prod
networks:
- heartlink_network
env_file:
- .env
ports:
- '8080:8080'
heartlink:
image: sachawildcode/projet-poec:latest
container_name: heartlink
restart: unless-stopped
networks:
- heartlink_network
env_file:
- .env
ports:
- '80:80'
cloudflare:
image: cloudflare/cloudflared
container_name: heartlink-cloudflare
command: tunnel run
environment:
TUNNEL_TOKEN: ${TUNNEL_TOKEN}
restart: unless-stopped
networks:
- heartlink_network
env_file:
- .env
volumes:
mysql-data:
networks:
heartlink_network:
name: heartlink_network