-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
38 lines (33 loc) · 1.03 KB
/
docker-compose.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
version: '3'
services:
sample-web-service:
build: ./sample-ui
container_name: ${NGINX_CONTAINER_NAME}
ports:
- "${NGINX_HOST_PORT}:${NGINX_CONTAINER_PORT}"
- "${NGINX_HTTPS_HOST_PORT}:${NGINX_HTTPS_CONTAINER_PORT}"
command: [nginx, '-g', 'daemon off;']
depends_on:
- sample-rest-service
sample-dynamo-service:
build: ./sample-dynamo
container_name: ${SAMPLE_DYNAMO_CONTAINER_NAME}
hostname: sample-dynamo
restart: always
ports:
- "${DYNAMO_HOST_PORT}:${DYNAMO_CONTAINER_PORT}"
init-sample-dynamo:
build: ./sample-aws-cli
container_name: ${SAMPLE_DYNAMO_INIT_CONTAINER_NAME}
links:
- sample-dynamo-service
env_file: .env
sample-rest-service:
build: ./sample-web-app
container_name: ${SAMPLE_REST_CONTAINER_NAME}
depends_on:
- sample-dynamo-service
ports:
- "${SAMPLE_REST_SERVER_HOST_PORT}:${SAMPLE_REST_SERVER_CONTAINER_PORT}"
- "${SAMPLE_REST_SERVER_DEBUGGER_HOST_PORT}:${SAMPLE_REST_SERVER_DEBUGGER_CONTAINER_PORT}"
env_file: .env