-
Notifications
You must be signed in to change notification settings - Fork 26
/
docker-compose-run.yml
73 lines (73 loc) · 1.99 KB
/
docker-compose-run.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
services:
db_brn:
image: postgres:13
restart: always
ports:
- 5432:5432
environment:
POSTGRES_DB: brn
POSTGRES_USER: admin
POSTGRES_PASSWORD: _POSTGRES_PASSWORD_
DATABASE_ALREADY_EXISTS: 'true'
volumes:
- dbdata:/var/lib/postgresql/data
brn:
container_name: brn
image: brainup/brn-backend
command: java -jar epam-brn.jar
ports:
- 8081:8081
environment:
POSTGRES_DB: brn
POSTGRES_USER: admin
POSTGRES_PASSWORD: _POSTGRES_PASSWORD_
SPRING_PROFILE: prod
aws.credentialsPath: /run/secrets/aws-key
GOOGLE_APPLICATION_CREDENTIALS: /run/secrets/firebase_config_json
YANDEX_AUTH_TOKEN: _YANDEX_AUTH_TOKEN_
YANDEX_FOLDER_ID: _YANDEX_FOLDER_ID_
API_GITHUB_TOKEN: _API_GITHUB_TOKEN_
secrets:
- aws-key
- firebase_config_json
depends_on:
- db_brn
# brn_fe:
# image: brainup/brn-frontend:latest
# container_name: brn_fe
# # ports:
# # - 80:80
# depends_on:
# - brn
brn_fe_with_tls:
image: brainup/brn-frontend-with-tls:latest
container_name: brn_fe_with_tls
ports:
- 80:80
- 443:443
volumes: #for permanent cert storage
- web-root-for-certbot:/usr/share/nginx/html/certcheck
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
depends_on:
- brn
certbot:
image: certbot/certbot
container_name: certbot
volumes:
- certbot-etc:/etc/letsencrypt
- certbot-var:/var/lib/letsencrypt
- web-root-for-certbot:/var/www/html
depends_on:
- brn_fe_with_tls
command: certonly --webroot --webroot-path=/var/www/html --email [email protected] --agree-tos --no-eff-email --force-renewal -d brainup.fun
secrets:
aws-key:
file: aws-key.properties
firebase_config_json:
file: firebase_config.json
volumes:
dbdata:
web-root-for-certbot: #volumes for certbot
certbot-etc: #volumes for certbot
certbot-var: #volumes for certbot