generated from dvsa/dvsa-lambda-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (43 loc) · 1.15 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
39
40
41
42
43
44
45
46
47
version: '3.5'
services:
dynamo:
container_name: local-dynamodb
image: amazon/dynamodb-local
ports:
- '8000:8000'
volumes:
- dynamodata:/home/dynamodblocal
working_dir: /home/dynamodblocal
command: '-jar DynamoDBLocal.jar -sharedDb -dbPath .'
networks:
dynamodbNetwork:
ipv4_address: 172.18.0.2
aliases:
- dynamodblocal
# Can view tables and data in tables
dynamodb_admin:
image: aaronshaf/dynamodb-admin
container_name: app-dynamodb_admin
ports:
- "8001:8001"
environment:
- DYNAMO_ENDPOINT=http://172.18.0.2:8000
depends_on:
- dynamo
networks:
dynamodbNetwork:
ipv4_address: 172.18.0.3
aliases:
- dynamodbadmin
# This will persist data and tables when restarting the dynamo container
volumes:
dynamodata: {}
networks:
dynamodbNetwork:
# This emulates the name of the network when running in a Github action
name: github_network_348ba1e8dc8f4460aaca022be6196a0f
driver: bridge
ipam:
driver: default
config:
- subnet: "172.18.0.2/16"