forked from openmrs/openmrs-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.override.yml
40 lines (36 loc) · 1.36 KB
/
docker-compose.override.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
version: "3.7"
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://mozilla.org/MPL/2.0/. OpenMRS is also distributed under
# the terms of the Healthcare Disclaimer located at https://openmrs.org/license.
#
# Copyright (C) OpenMRS Inc. OpenMRS is a registered trademark and the OpenMRS
# graphic logo is a trademark of OpenMRS Inc.
services:
db:
ports:
- "3306:3306"
restart: "no"
volumes:
# Comment out if DB should be created from scratch
- ./initial_test_db.sql:/docker-entrypoint-initdb.d/initial_test_db.sql
api:
image: openmrs/openmrs-core:${TAG:-dev}
build:
target: dev
context: .
cache_from:
- openmrs/openmrs-core:${TAG-dev}
ports:
- "8080:8080"
- "8000:8000"
environment:
OMRS_DEV_DEBUG_PORT: ${OMRS_DEV_DEBUG_PORT:-8000}
OMRS_CREATE_TABLES: ${OMRS_CREATE_TABLES:-true}
OMRS_BUILD: ${OMRS_BUILD:-true}
OMRS_BUILD_GOALS: ${OMRS_BUILD_GOALS:-}
OMRS_BUILD_ARGS: ${OMRS_BUILD_ARGS:-}
volumes:
- ~/.m2:/root/.m2
- ./:/openmrs_core
restart: "no"