-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdocker-compose.build-prod.yml
50 lines (49 loc) · 1.12 KB
/
docker-compose.build-prod.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
version: '3.1'
services:
db:
build:
context: .
dockerfile: Dockerfiles/Dockerfile-mysql
image: thomasderuel/dyno-nuggets-db:latest
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'password'
MYSQL_DATABASE: 'implicaction'
ports:
- "3306:3306"
expose:
- "3306"
volumes:
- my-db:/var/lib/mysql
adminer:
image: adminer
restart: always
ports:
- "9001:8080"
spring:
depends_on: ["db"]
restart: always
image: thomasderuel/dyno-nuggets-app:latest
build:
context: .
dockerfile: Dockerfiles/Dockerfile-spring
environment:
DB_URI: mysql://db:3306/implicaction
DB_USER: root
DB_PASS: password
SMTP_HOST: smtp.mailtrap.io
SMTP_PORT: 2525
SMTP_USER: 5c354372a1d5da
SMTP_PASS: 6b3338fa1cc8b9
KS_PATH: /implicaction.jks
KS_NAME: implicaction
KS_PASSWORD: .fxG3KPB.
APP_URL: http://localhost:8080
CONTACT_EMAIL: [email protected]
AWS_ACCESS_KEY: ""
AWS_SECRET_KEY: ""
AWS_REGION: ""
ports:
- "8080:8080"
volumes:
my-db: