-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
36 lines (36 loc) · 879 Bytes
/
docker-compose.yml
File metadata and controls
36 lines (36 loc) · 879 Bytes
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
version: '3.7'
services:
auth-db:
container_name: auth-db
image: postgres:10-alpine
restart: always
ports:
- "5432:5432"
environment:
POSTGRES_DB: auth
POSTGRES_USER: user.auth
POSTGRES_PASSWORD: user.pass
volumes:
- ./.docker-volumes/auth-db:/var/lib/postgresql/data
auth-service:
container_name: spring-auth-service
image: auth-service
restart: always
ports:
- "9001:8080"
environment:
DB_URL: jdbc:postgresql://auth-db:5432/auth
DB_USER: user.auth
DB_PASSWORD: user.pass
# MAIL_HOST: ?
# MAIL_PASSWORD: ?
# MAIL_PORT: ?
# MAIL_SENDER: ?
# MAIL_USERNAME: ?
WEB_APP_BASE_URL: http://localhost:4200
CORS_ALLOWED_ORIGIN: http://localhost:4200
SPRING_PROFILES_ACTIVE: dev
links:
- auth-db
depends_on:
- auth-db