-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
39 lines (37 loc) · 1.22 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
services:
# For release builds
tourist-main:
build:
context: .
dockerfile: Dockerfile.main
container_name: tourist
# For running tourist locally
# This container and the tourist package is built from
# the source code on your local machine.
tourist-local:
build:
context: .
dockerfile: Dockerfile.local
container_name: tourist-local
hostname: tourist-local
ports:
- 8000:8000
# Deploy tourist into AWS using Terraform/SAM.
# IMPORTANT: By default, state is managed locally under `./data/statefile`
# TODO/Contribution: Convert to tf module
# TODO/Contribution: Allow for "backend" customizations with tfconfig
# TODO/Contribution: Change entrypoint to auto-deploy the infra; maybe through a shell script?
sam-deploy:
build:
dockerfile: Dockerfile.sam
container_name: sam-deploy
working_dir: /build/terraform/aws
volumes:
- /var/run/docker.sock:/var/run/docker.sock # docker
- ./terraform/aws:/build/terraform/aws # terraform code
- ./data/statefile:/build/terraform/statefile # statefile!
env_file:
- .env.aws # need AWS credentials to deploy
environment:
- SAM_CLI_TELEMETRY=0
entrypoint: sleep 8h