-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
69 lines (64 loc) · 1.98 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
version: "3.8"
services:
mysql-database:
image: mysql:8
networks:
- surfvivor-fitness-backend
container_name: mysql-database-survivorfitness
environment:
- MYSQL_ROOT_PASSWORD=Password2020!
- MYSQL_DATABASE=survivorfitnessdb
expose:
- "3306"
volumes:
- mysql-data:/var/lib/mysql
backend-api:
image: ilyaermakov/survivor-fitness-backend:v19-disable-account
networks:
- surfvivor-fitness-backend
container_name: backend-api-survivorfitness
ports:
- "8080:8080"
environment:
# Domain name is the same as the database service name
SFF_DB_URL: jdbc:mysql://mysql-database:3306/survivorfitnessdb
SFF_DB_USERNAME: root
SFF_DB_PASSWORD: Password2020!
SFF_DB_DRIVER_CLASS_NAME: com.mysql.cj.jdbc.Driver
SFF_DB_HIBERNATE_DIALECT: org.hibernate.dialect.MySQL8Dialect
SFF_DB_DDL_AUTO: none
SFF_JWT_SECRET_KEY: ${SFF_JWT_SECRET_KEY}
SFF_JWT_ISSUER: SurvivorFitness-Backend
SFF_JWT_SUBJECT: JWT-Token
SFF_EMAIL_SMTP_HOST: ${SFF_EMAIL_SMTP_HOST}
SFF_EMAIL_TLS_PORT: ${SFF_EMAIL_TLS_PORT}
SFF_EMAIL_USERNAME: ${SFF_EMAIL_USERNAME}
SFF_EMAIL_PASSWORD: ${SFF_EMAIL_PASSWORD}
SFF_PASSWORD_RESET_EMAIL_EXPIRATION_HOURS: 24
SFF_DOMAIN_NAME: ${SFF_DOMAIN_NAME}
SFF_CREATE_DEMO_DATA: "false"
depends_on:
- mysql-database
mysql-backup:
image: databack/mysql-backup:latest
networks:
- surfvivor-fitness-backend
environment:
- DB_SERVER=mysql-database
- DB_USER=root
- DB_PASS=Password2020!
- DB_NAMES=survivorfitnessdb
- DB_DUMP_TARGET=s3://sffbackupbucket/backups
- DB_DUMP_BEGIN=+1
- DB_DUMP_FREQ=1
- AWS_ACCESS_KEY_ID=${SFF_AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${SFF_AWS_SECRET_ACCESS_KEY}
- AWS_DEFAULT_REGION=us-east-1
volumes:
- /etc/localtime:/etc/localtime:ro
depends_on:
- mysql-database
networks:
surfvivor-fitness-backend:
volumes:
mysql-data: