-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
71 lines (67 loc) · 1.6 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
version: '3'
services:
help-with-prison-visits-external:
build:
context: .
volumes:
- "./app:/usr/src/app/app"
- "./logs:/usr/src/app/logs"
- "./uploads:/usr/src/app/uploads"
networks:
- hmpps_int
depends_on:
- clamav
ports:
- "3000:3000"
env_file: ./.env
clamav:
image: quay.io/hmpps/hmpps-clamav:latest
restart: always
container_name: clamav-int
networks:
- hmpps_int
ports:
- "3310:3310"
localstack:
image: localstack/localstack:0.11.2
ports:
- "4567-4584:4567-4584"
- "8088:8088"
networks:
- hmpps_int
container_name: localstack
restart: always
environment:
- SERVICES=s3
- DEBUG=1
- DATA_DIR=/tmp/localstack/data
- PORT_WEB_UI=8088
- DEFAULT_REGION=eu-west-2
volumes:
- './.localstack:/tmp/localstack'
localstack-setup:
image: jetbrainsinfra/aws-cli
networks:
- hmpps_int
depends_on:
- localstack
volumes:
- ./dev_env:/project/dev_env
container_name: localstack-setup
environment:
- AWS_ACCESS_KEY_ID=foo
- AWS_SECRET_ACCESS_KEY=bar
- AWS_DEFAULT_REGION=eu-west-2
entrypoint: /bin/sh -c
command: >
"
while [[ $$(curl -s -o /dev/null -w ''%{http_code}'' localstack:4572) != "200" ]]; do
echo 'HwPV External AWS - awaiting localstack service start'
sleep 10
done
aws --endpoint-url=http://localstack:4572 s3 mb s3://testbucket
aws --endpoint-url=http://localstack:4572 s3 ls
exit 0
"
networks:
hmpps_int: