-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (35 loc) · 845 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (35 loc) · 845 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
version: '1'
services:
web:
container_name: EXPRESS_GOV
hostname: express_gov
ports:
- "3000:3000"
image: kainos-engacademy:expressgov
environment:
- API_URL=$API_URL
depends_on:
- backend
backend:
container_name: JDBC
hostname: jdbc
ports:
- "8080:8080"
image: kainos-engacademy:jdbc
environment:
- DB_HOST=$DB_HOST
- DB_PASSWORD=$DB_PASSWORD
- DB_USERNAME=$DB_USERNAME
- DB_NAME=$DB_NAME
# Below code is required to use a local containerised db
# depends_on:
# - db
# db:
# image: mysql
# container_name: MYSQLDB
# hostname: mysqldb
# ports:
# - "3306:3306"
# command: --default-authentication-plugin=mysql_native_password
# environment:
# MYSQL_ROOT_PASSWORD: $DB_PASSWORD