-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yaml
50 lines (48 loc) · 1.86 KB
/
docker-compose.yaml
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.9'
# Do not run this file directly. Use the ./bin/docker-startup-scripts instead
# We leverage environment variables that must be exported first
services:
pjl-application-db: # this should equal ${POSTGRES_DOCKER_COMPOSE_SERVICE_NAME} in .env
image: "postgres" # https://hub.docker.com/_/postgres/
restart: always
container_name: ${POSTGRES_DOCKER_IMAGE_NAME_OUTER}
ports:
- "5432:5432"
environment:
POSTGRES_DB: ${DEFAULT_DOCKER_DATABASE_NAME}
POSTGRES_USER: ${BACKEND_DATASOURCE_USERNAME}
POSTGRES_PASSWORD: ${BACKEND_DATASOURCE_PASSWORD}
volumes:
- /var/tmp/db-data:/tmp # local directory:container directory
back-end-server: # this should equal ${SPRING_DOCKER_COMPOSE_SERVICE_NAME} in .env
build: ./spring-back-end
image: ${SPRING_DOCKER_IMAGE_NAME_OUTER}:0.0.1
ports:
- "8443:8443"
container_name: ${SPRING_DOCKER_IMAGE_NAME_OUTER}
environment:
DEFAULT_DOCKER_DATABASE_NAME: ${DEFAULT_DOCKER_DATABASE_NAME}
BACKEND_DATASOURCE_USERNAME: ${BACKEND_DATASOURCE_USERNAME}
BACKEND_DATASOURCE_PASSWORD: ${BACKEND_DATASOURCE_PASSWORD}
DATABASE_DOCKER_SERVICE_NAME: ${POSTGRES_DOCKER_COMPOSE_SERVICE_NAME}
GOOGLE_PROVIDER_ID: ${GOOGLE_PROVIDER_ID}
front-end-app:
build:
context: ./angular-front-end
args:
ANGULAR_WORKDIR: ${DEFAULT_ANGULAR_DOCKER_WORKDIR}
develop:
watch:
- action: sync
path: ./angular-front-end/src/app
target: /${DEFAULT_ANGULAR_DOCKER_WORKDIR}/src/app
ignore:
- ./angular-front-end/node_modules
- action: rebuild
path: ./angular-front-end/package.json
image: ${ANGULAR_DOCKER_IMAGE_NAME_OUTER}:0.0.1
ports:
- "4200:4200"
container_name: ${ANGULAR_DOCKER_IMAGE_NAME_OUTER}
depends_on:
- ${SPRING_DOCKER_COMPOSE_SERVICE_NAME}