This repository was archived by the owner on Jul 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.example.yml
More file actions
60 lines (55 loc) · 1.57 KB
/
docker-compose.example.yml
File metadata and controls
60 lines (55 loc) · 1.57 KB
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
# Example docker-compose file
# This file contains 4 services:
# 1. A mysql 5.6 database
# 2. Localstack with kinesis, firehose, and sqs
# 3. Snowplow
# 4. The application
version: '3.1'
services:
mysql:
image: mysql:5.6@sha256:20575ecebe6216036d25dab5903808211f1e9ba63dc7825ac20cb975e34cfcae
platform: linux/amd64
env_file:
- ./.docker/local.env
ports:
- '3309:3306'
volumes:
- .docker/mysql/schema:/docker-entrypoint-initdb.d:delegated
environment:
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
- TZ=UTC
localstack:
image: localstack/localstack@sha256:752ed233a1ae35775689132dbc384fd61b6451e0d4c70f206f4b8c8ea9c80ee0
env_file:
- .docker/local.env
ports:
- '4566:4566'
volumes:
- ./.docker/localstack:/docker-entrypoint-initaws.d
environment:
- LOCALSTACK_API_KEY=${LOCALSTACK_API_KEY}
- DEBUG=1
- SERVICES=kinesis,firehose,sqs
- DATA_DIR=/tmp/localstack/data
- DOCKER_HOST=unix:///var/run/docker.sock
- EXTRA_CORS_ALLOWED_HEADERS=Content-Disposition, Content-Type, x-amz-acl
- EXTRA_CORS_EXPOSE_HEADERS=ETag
- HOSTNAME_EXTERNAL=localstack
app:
image: node:16-slim@sha256:472d9627d088c880e27e0070a836108b1ae1f4d81488892cc7128fa41ebe4b4c
platform: linux/amd64
working_dir: /app
ports:
- '4242:4242'
volumes:
- ./:/app
env_file:
- .docker/local.env
- .env
environment:
- NODE_ENV=local
entrypoint: ./.docker/scripts/local-start.sh
depends_on:
- mysql
- localstack
- snowplow