-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (51 loc) · 1.43 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
48
49
50
51
52
53
54
55
services:
mysql:
image: mysql:8.0
platform: linux/amd64
container_name: mysql
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: quake-alert-bff
MYSQL_USER: admin
MYSQL_PASSWORD: password
TZ: 'Asia/Tokyo'
volumes:
- ./docker/mysql:/var/lib/mysql
dynamodb-local:
image: amazon/dynamodb-local:latest
container_name: dynamodb-local
command: '-jar DynamoDBLocal.jar -sharedDb -dbPath /home/dynamodblocal/db'
ports:
- '8000:8000'
volumes:
- ./docker/dynamodb:/home/dynamodblocal/db
dynamodb-admin:
image: aaronshaf/dynamodb-admin:latest
container_name: dynamodb-admin
ports:
- '8001:8001'
environment:
- DYNAMO_ENDPOINT=http://dynamodb-local:8000
- AWS_REGION=ap-northeast-1
- AWS_ACCESS_KEY_ID=dummyAccessKeyId
- AWS_SECRET_ACCESS_KEY=dummySecretAccessKey
nginx:
image: nginx:latest
container_name: nginx
ports:
- '80:80'
- '443:443'
restart: always
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf/:ro
- ./certbot/www/:/etc/www/certbot/:ro
- ./certbot/conf/:/etc/nginx/
certbot:
image: certbot/certbot:latest
container_name: certbot
volumes:
- ./certbot/www/:/etc/www/certbot/:rw
- ./certbot/conf/:/etc/nginx/:rw
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; sleep 10d & wait $${!}; done;'"