-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathdocker-compose.yml
107 lines (94 loc) · 2.71 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
version: '3'
#######
# ansible-runner - Ansible for deploying IaC
# localstack - default version of LocalStack to run for LocalStack connectivity
# portainer - portainer instanace to manage Docker from a local website
# serverless - Serverless Framework for depolying IaC
# terraform - Terraform for deploying IaC
services:
# container for ansible
# entrypoint: ansible-runner
ansible-runner:
container_name: commandeer-ansible-runner
image: ansible/ansible-runner:1.4.4
# container for cassandra
# entrypoint: cassandra
cassandra:
container_name: commandeer-cassandra
image: cassandra:3.11.6
# container for localstack
# entrypoint: localstack
localstack:
container_name: commandeer-localstack
image: localstack/localstack:0.11.3
network_mode: bridge
ports:
- "4566:4566"
- "4571:4571"
- "${PORT_WEB_UI-8080}:${PORT_WEB_UI-8080}"
environment:
- SERVICES=${SERVICES- }
- DEBUG=${DEBUG- }
- DATA_DIR=${DATA_DIR- }
- PORT_WEB_UI=${PORT_WEB_UI- }
- LAMBDA_EXECUTOR=${LAMBDA_EXECUTOR- }
- KINESIS_ERROR_PROBABILITY=${KINESIS_ERROR_PROBABILITY- }
- DOCKER_HOST=unix:///var/run/docker.sock
- HOST_TMP_FOLDER=${TMPDIR}
volumes:
- "${TMPDIR:-/tmp/localstack}:/tmp/localstack"
- "/var/run/docker.sock:/var/run/docker.sock"
# container for mongo
# entrypoint: mongo
mongodb:
container_name: commandeer-mongo
image: mongo:4.2.8
# container for mysql
# entrypoint: mysql
mysql:
container_name: commandeer-mysql
image: mysql
# container for nginx
# entrypoint: nginx
nginx:
container_name: commandeer-nginx
image: nginx:alpine
ports:
- 80:80
volumes:
- nginx-data:/usr/share/nginx/html
# container for portainer
# entrypoint: http://localhost:9000
portainer:
container_name: commandeer-portainer
image: portainer/portainer-ce:2.0.0
command: -H unix:///var/run/docker.sock
restart: always
ports:
- "9000:9000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- portainer_data:/data
# container for postgres
# entrypoint: postgres
postgres:
container_name: commandeer-postgres
image: postgres
# container for redis
# entrypoint: redis
redis:
container_name: commandeer-redis
image: redis:alpine3.11
# container for serverless
# entrypoint: serverless
serverless:
container_name: commandeer-serverless
image: softinstigate/serverless:1.59.0
# container for terraform
# entrypoint: terraform
terraform:
container_name: commandeer-terraform
image: hashicorp/terraform:0.12.18
volumes:
nginx-data:
portainer_data: